Mercurial > hg > forks > pwpunix
diff pwplib/pwplib-unix.c @ 17:c60e531d19cd
Some misc. cleanups and minor warning removals.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 22 May 2010 20:32:49 +0300 |
parents | fa87f8897f21 |
children | 2c72092554fa |
line wrap: on
line diff
--- a/pwplib/pwplib-unix.c Sat May 22 18:12:51 2010 +0300 +++ b/pwplib/pwplib-unix.c Sat May 22 20:32:49 2010 +0300 @@ -18,18 +18,20 @@ /******************** random stuff *************************/ -#ifdef DRIVE_SDL static int sdl_init = 0; -#endif extern void pwplib_dummy(); #define pwp_dummy pwplib_dummy -void pwpwrite(char*z) +void pwpwrite(const char *fmt, ...) { if(!pwplib.setup[SETUP_SHUTUP]) { - fprintf(stderr,"%s",z); + va_list ap; + va_start(ap, fmt); + vfprintf(stderr, fmt, ap); + va_end(ap); + usleep(1000*pwplib.set.infodelay); } }