through `...'", and therefore "...you should pass `int' not `short int'
to `va_arg'".
GCC "2.96" apparently fails to compile code that passes "short int" to
"va_arg()", and Red Hat Linux 7.0 uses GCC "2.96", so we fix this, as
per Pekka Savola's note.
* SUCH DAMAGE.
*/
-/* $Id: snprintf.c,v 1.3 2000-01-10 16:57:44 fenner Exp $ */
+/* $Id: snprintf.c,v 1.4 2001-01-02 22:33:04 guy Exp $ */
#ifdef HAVE_CONFIG_H
#include <config.h>
#ifndef lint
static const char rcsid[] =
- "@(#) $Header: /tcpdump/master/tcpdump/missing/snprintf.c,v 1.3 2000-01-10 16:57:44 fenner Exp $";
+ "@(#) $Header: /tcpdump/master/tcpdump/missing/snprintf.c,v 1.4 2001-01-02 22:33:04 guy Exp $";
#endif
#include <stdio.h>
if (long_flag) \
res = (unsig long)va_arg(arg, unsig long); \
else if (short_flag) \
- res = (unsig short)va_arg(arg, unsig short); \
+ res = (unsig short)va_arg(arg, unsig int); \
else \
res = (unsig int)va_arg(arg, unsig int)