wmaker: Added 'const' attribute to local function 'getMaxStringWidth'
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 16 Jun 2013 15:57:43 +0000 (16 17:57 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Sun, 16 Jun 2013 18:32:23 +0000 (16 19:32 +0100)
Signed-off-by: Christophe CURIS <christophe.curis@free.fr>
src/balloon.c

index a904fe0..44e0964 100644 (file)
@@ -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;