$NetBSD: patch-ad,v 1.1 2004/02/09 09:17:50 wennmach Exp $ Deprecate varargs. Type fixes (from Debian GNU/Linux). --- snprintf.c.orig Sat Oct 31 05:36:20 1998 +++ snprintf.c Wed Jan 14 18:18:31 2004 @@ -59,9 +59,10 @@ #if !defined(HAVE_SNPRINTF) || !defined(HAVE_VSNPRINTF) -/* Define this as a fall through, HAVE_STDARG_H is probably already set */ +/* deprecate VARARGS */ -#define HAVE_VARARGS_H +#undef HAVE_VARARGS_H +#define HAVE_STDARG_H /* varargs declarations: */ @@ -263,7 +264,7 @@ case 'd': case 'i': if (cflags == DP_C_SHORT) - value = va_arg (args, short int); + value = va_arg (args, int); else if (cflags == DP_C_LONG) value = va_arg (args, long int); else @@ -273,7 +274,7 @@ case 'o': flags |= DP_F_UNSIGNED; if (cflags == DP_C_SHORT) - value = va_arg (args, unsigned short int); + value = va_arg (args, unsigned int); else if (cflags == DP_C_LONG) value = (long)va_arg (args, unsigned long int); else @@ -283,7 +284,7 @@ case 'u': flags |= DP_F_UNSIGNED; if (cflags == DP_C_SHORT) - value = va_arg (args, unsigned short int); + value = va_arg (args, unsigned int); else if (cflags == DP_C_LONG) value = (long)va_arg (args, unsigned long int); else @@ -295,7 +296,7 @@ case 'x': flags |= DP_F_UNSIGNED; if (cflags == DP_C_SHORT) - value = va_arg (args, unsigned short int); + value = va_arg (args, unsigned int); else if (cflags == DP_C_LONG) value = (long)va_arg (args, unsigned long int); else