From: Christophe CURIS Date: Sun, 16 Jun 2013 15:57:43 +0000 (+0200) Subject: wmaker: Added 'const' attribute to local function 'getMaxStringWidth' X-Git-Tag: wmaker-0.95.5~25 X-Git-Url: https://repo.or.cz/w/wmaker-crm.git/commitdiff_plain/a092d8848a6751e3351d3d172ac50ea51e43df25 wmaker: Added 'const' attribute to local function 'getMaxStringWidth' Signed-off-by: Christophe CURIS --- diff --git a/src/balloon.c b/src/balloon.c index a904fe04..44e0964e 100644 --- a/src/balloon.c +++ b/src/balloon.c @@ -88,10 +88,10 @@ static int countLines(const char *text) return h; } -static int getMaxStringWidth(WMFont * font, char *text) +static int getMaxStringWidth(WMFont * font, const char *text) { - char *p = text; - char *pb = p; + const char *p = text; + const char *pb = p; int pos = 0; int w = 0, wt;