Remove more warnings

This commit is contained in:
Simon 2011-04-08 15:39:55 +01:00
parent 626cc8fa6a
commit 6c3ac2af5c
2 changed files with 4 additions and 4 deletions

View File

@ -868,7 +868,7 @@ int drawtextwrap(pixel *vid, int x, int y, int w, const char *s, int r, int g, i
while (*s) while (*s)
{ {
wordlen = strcspn(s," .,!?\n"); wordlen = strcspn(s," .,!?\n");
charspace = textwidthx(s, w-(x-cw)); charspace = textwidthx((char *)s, w-(x-cw));
if (charspace<wordlen && wordlen && w-(x-cw)<w/3) if (charspace<wordlen && wordlen && w-(x-cw)<w/3)
{ {
x = sx; x = sx;

View File

@ -2673,14 +2673,14 @@ int main(int argc, char *argv[])
#ifdef BETA #ifdef BETA
if (is_beta) if (is_beta)
{ {
old_ver_len = textwidth(old_ver_msg_beta); old_ver_len = textwidth((char*)old_ver_msg_beta);
} }
else else
{ {
old_ver_len = textwidth(old_ver_msg); old_ver_len = textwidth((char*)old_ver_msg);
} }
#else #else
old_ver_len = textwidth(old_ver_msg); old_ver_len = textwidth((char*)old_ver_msg);
#endif #endif
menu_count(); menu_count();
parts = calloc(sizeof(particle), NPART); parts = calloc(sizeof(particle), NPART);