Date: Thursday October 30, 2003 @ 17:04 Author: cameron Update of /home/netrek/cvsroot/Vanilla/robotd In directory swashbuckler.real-time.com:/var/tmp/cvs-serv5536/robotd Modified Files: util.c Log Message: use stdargs **************************************** Index: Vanilla/robotd/util.c diff -u Vanilla/robotd/util.c:1.4 Vanilla/robotd/util.c:1.5 --- Vanilla/robotd/util.c:1.4 Fri Apr 27 21:42:34 2001 +++ Vanilla/robotd/util.c Thu Oct 30 17:04:38 2003 @@ -4,7 +4,7 @@ #include "copyright.h" #include <stdio.h> -#include <varargs.h> +#include <stdarg.h> #include <math.h> #include <signal.h> @@ -430,38 +430,30 @@ } #endif -mprintf(va_alist) - - va_dcl +mprintf(char *format, ...) { va_list ap; - char *format; if(!read_stdin) return; - va_start(ap); - format = va_arg(ap, char *); + va_start(ap, format); (void)vprintf(format, ap); fflush(stdout); va_end(ap); } -mfprintf(va_alist) - - va_dcl +mfprintf(char *format, ...) { FILE *fo; - char *format; va_list ap; if(!read_stdin) return; - va_start(ap); + va_start(ap, format); fo = va_arg(ap, FILE *); - format = va_arg(ap, char *); (void)vfprintf(fo, format, ap); fflush(stdout); va_end(ap); _______________________________________________ vanilla-devel mailing list vanilla-devel at us.netrek.org https://mailman.real-time.com/mailman/listinfo/vanilla-devel