Package: mgp / 1.13a+upstream20090219-8

568339.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- a/draw.c
+++ b/draw.c
@@ -5425,7 +5425,6 @@
 	char *p, *p2;
 	char style[100];
 	char font[100];
-	int stlen;
 
 	bzero(style, sizeof(style));
 	bzero(font, sizeof(font));
@@ -5471,12 +5470,12 @@
 		    XFT_FAMILY, XftTypeString, font,
 		    XFT_ENCODING, XftTypeString, registry,
 		    XFT_STYLE, XftTypeString, style,
-		    XFT_PIXEL_SIZE, XftTypeDouble, (float)csize, 0);
+		    XFT_PIXEL_SIZE, XftTypeDouble, (float)csize, (char*)0);
 	} else {
 		xftfont = XftFontOpen(display, screen,
 		    XFT_FAMILY, XftTypeString, font,
 		    XFT_ENCODING, XftTypeString, registry,
-		    XFT_PIXEL_SIZE, XftTypeDouble, (float)csize, 0);
+		    XFT_PIXEL_SIZE, XftTypeDouble, (float)csize, (char*)0);
 	}
 	if (xftfont == 0) {
 		free(xfont);