summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2009-06-24 05:35:07 +0000
committerNicholas Marriott <nicm@openbsd.org>2009-06-24 05:35:07 +0000
commit27cfa81110c26d2505d50443c330324faa8bf49b (patch)
tree7ed136039c13a853a6bbd890aa3551692f388e0b
parent013b88dfc308691c5bbbeca23b567a6e27ebc735 (diff)
Constify utf8_width() function argument.
-rw-r--r--tmux.h2
-rw-r--r--utf8.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tmux.h b/tmux.h
index 645e5003..04088a16 100644
--- a/tmux.h
+++ b/tmux.h
@@ -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/utf8.c b/utf8.c
index b0e3c3cb..9458d8b2 100644
--- a/utf8.c
+++ b/utf8.c
@@ -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;