wmaker: Added 'const' attribute to local function 'drawMultiLineString'
authorChristophe CURIS <christophe.curis@free.fr>
Sun, 16 Jun 2013 15:57:44 +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 44e0964..ff994b0 100644 (file)
@@ -117,10 +117,10 @@ static int getMaxStringWidth(WMFont * font, const char *text)
 
 static void
 drawMultiLineString(WMScreen * scr, Pixmap pixmap, WMColor * color,
-                   WMFont * font, int x, int y, char *text, int len)
+                   WMFont *font, int x, int y, const char *text, int len)
 {
-       char *p = text;
-       char *pb = p;
+       const char *p = text;
+       const char *pb = p;
        int l = 0, pos = 0;
        int height = WMFontHeight(font);