silence compiler warnings

This commit is contained in:
marschap
2006-04-13 21:22:33 +00:00
parent 657c2c88ba
commit df38a63770
16 changed files with 52 additions and 59 deletions
+4 -10
View File
@@ -473,16 +473,10 @@ svga_string (Driver *drvthis, int x, int y, char string[])
debug(RPT_DEBUG, "%s(%p, %d, %d, \"%s\")", __FUNCTION__, drvthis, x, y, string);
for (i = 0; string[i] != '\0'; i++) {
unsigned char *c = &string[i];
char *c = &string[i];
switch (*c) {
case '\0':
*c = icon_char;
break;
case 255:
*c = '#';
break;
}
if ((unsigned char) *c == 255) // TODO: Is this still necessary ?
*c = '#';
}
gl_writen(x * p->cellwidth + p->xoffs, y * p->cellheight + p->yoffs, i, string);
}
@@ -500,7 +494,7 @@ svga_chr (Driver *drvthis, int x, int y, char c)
debug(RPT_DEBUG, "%s(%p, %d, %d, \'%c\')", __FUNCTION__, drvthis, x, y, c);
switch ((unsigned char) c) {
switch ((unsigned char) c) { // TODO: is this still necessary ?
case '\0':
c = icon_char;
break;