From 245685433efa5334f781c2e9fb26caa10b2b2ff9 Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Thu, 25 Jun 2009 16:00:50 +0000 Subject: [PATCH] Constify utf8_width() function argument. --- tmux.h | 4 ++-- utf8.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tmux.h b/tmux.h index 06756001..a1b84433 100644 --- a/tmux.h +++ b/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 @@ -1642,7 +1642,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 30f9b6e5..268d8e57 100644 --- a/utf8.c +++ b/utf8.c @@ -1,4 +1,4 @@ -/* $Id: utf8.c,v 1.6 2009-05-04 17:58:27 nicm Exp $ */ +/* $OpenBSD: utf8.c,v 1.2 2009/06/24 05:35:07 nicm Exp $ */ /* * Copyright (c) 2008 Nicholas Marriott @@ -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;