Constify utf8_width() function argument.

This commit is contained in:
Nicholas Marriott 2009-06-24 05:35:07 +00:00
parent 013b88dfc3
commit 27cfa81110
2 changed files with 2 additions and 2 deletions

2
tmux.h
View File

@ -1521,7 +1521,7 @@ int session_last(struct session *);
/* utf8.c */ /* utf8.c */
void utf8_build(void); void utf8_build(void);
int utf8_width(u_char *); int utf8_width(const u_char *);
/* util.c */ /* util.c */
char *section_string(char *, size_t, size_t, size_t); char *section_string(char *, size_t, size_t, size_t);

2
utf8.c
View File

@ -297,7 +297,7 @@ utf8_split(u_int uvalue, u_char *data)
} }
int int
utf8_width(u_char *udata) utf8_width(const u_char *udata)
{ {
struct utf8_width_entry *item; struct utf8_width_entry *item;
u_int uvalue; u_int uvalue;