X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=hacks%2Fglx%2Fstarwars.c;h=ada87e94933e13a533a0980fcc96695a0e0b27ba;hb=dba664f31aa87285db4d76cf8c5e66335299703a;hp=de3833c5d74f7357a4c3de75150db5317174a5db;hpb=f8cf5ac7b2f53510f80a0eaf286a25298be17bfe;p=xscreensaver diff --git a/hacks/glx/starwars.c b/hacks/glx/starwars.c index de3833c5..ada87e94 100644 --- a/hacks/glx/starwars.c +++ b/hacks/glx/starwars.c @@ -1,4 +1,4 @@ -/* starwars, Copyright (c) 1998-2012 Jamie Zawinski and +/* starwars, Copyright (c) 1998-2014 Jamie Zawinski and * Claudio Matsuoka * * Permission to use, copy, modify, distribute, and sell this software and its @@ -36,7 +36,6 @@ # include #endif - #include "starwars.h" #define DEFAULTS "*delay: 40000 \n" \ "*showFPS: False \n" \ @@ -319,10 +318,10 @@ get_more_lines (sws_configuration *sc) */ while (target > 0) { - char c = textclient_getc (sc->tc); + int c = textclient_getc (sc->tc); if (c <= 0) break; - sc->buf[sc->buf_tail++] = c; + sc->buf[sc->buf_tail++] = (char) c; sc->buf[sc->buf_tail] = 0; target--; } @@ -1046,6 +1045,12 @@ release_sws (ModeInfo *mi) } +#ifdef __GNUC__ + __extension__ /* don't warn about "string length is greater than the length + ISO C89 compilers are required to support" when including + "starwars.txt" in the defaults... */ +#endif + XSCREENSAVER_MODULE_2 ("StarWars", starwars, sws) #endif /* USE_GL */