diff options
author | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-06-24 05:35:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@cvs.openbsd.org> | 2009-06-24 05:35:08 +0000 |
commit | d68ac40de418ffc6ff3487c77dd8c1d497901c8f (patch) | |
tree | 8a3e02a2d5e96edc6afbd56591b31b9653103096 /usr.bin | |
parent | a09ef7e8c9cce3eebc33ac240bd6a32164663303 (diff) |
Constify utf8_width() function argument.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/tmux/tmux.h | 4 | ||||
-rw-r--r-- | usr.bin/tmux/utf8.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tmux/tmux.h b/usr.bin/tmux/tmux.h index 739f6038ea3..07d14672bcc 100644 --- a/usr.bin/tmux/tmux.h +++ b/usr.bin/tmux/tmux.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.h,v 1.6 2009/06/04 18:48:24 nicm Exp $ */ +/* $OpenBSD: tmux.h,v 1.7 2009/06/24 05:35:07 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -1521,7 +1521,7 @@ int session_last(struct session *); /* utf8.c */ void utf8_build(void); -int utf8_width(u_char *); +int utf8_width(const u_char *); /* util.c */ char *section_string(char *, size_t, size_t, size_t); diff --git a/usr.bin/tmux/utf8.c b/usr.bin/tmux/utf8.c index 63660e8c135..268d8e57cbe 100644 --- a/usr.bin/tmux/utf8.c +++ b/usr.bin/tmux/utf8.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utf8.c,v 1.1 2009/06/01 22:58:49 nicm Exp $ */ +/* $OpenBSD: utf8.c,v 1.2 2009/06/24 05:35:07 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net> @@ -297,7 +297,7 @@ utf8_split(u_int uvalue, u_char *data) } int -utf8_width(u_char *udata) +utf8_width(const u_char *udata) { struct utf8_width_entry *item; u_int uvalue; |