--- callbacks.c.orig Fri Apr 23 05:22:59 1993 +++ callbacks.c Tue Oct 28 02:03:28 2003 @@ -42,7 +42,7 @@ #include #endif -#include +#include #include #include #include @@ -66,7 +66,7 @@ extern Widget hex_text_widget; /* hex (bottom) window */ extern Widget packet_label; -extern char *sys_errlist[]; +extern __const char *__const sys_errlist[]; #ifdef __STDC__ void redisplay_current_list(void); @@ -726,32 +726,35 @@ } -void eprint(va_alist) - va_dcl +void eprintv(char *fmt, va_list ap) +{ + char str[128]; + + (void)vsprintf(str, fmt, ap); + ErrorDialog(summary_list_widget, "error", str); +} + + +void eprint(char *fmt, ...) { va_list args; - char *fmt, str[128]; - va_start(args); - fmt = va_arg(args, char *); - (void)vsprintf(str,fmt,args); + va_start(args, fmt); + eprintv(fmt, args); va_end(args); - - ErrorDialog(summary_list_widget,"error",str); } -void iprint(va_alist) - va_dcl + +void iprint(char *fmt, ...) { va_list args; - char *fmt, str[128]; + char str[128]; Widget widget; XmString ms; Arg a[2]; int n; - va_start(args); - fmt = va_arg(args, char *); + va_start(args, fmt); (void)vsprintf(str,fmt,args); va_end(args);