]> The Tcpdump Group git mirrors - tcpdump/commit
As GCC "2.96" notes, "`short int' is promoted to `int' when passed
authorguy <guy>
Tue, 2 Jan 2001 22:33:04 +0000 (22:33 +0000)
committerguy <guy>
Tue, 2 Jan 2001 22:33:04 +0000 (22:33 +0000)
commit3d6bd825eec79140483560eda4377278b1334ba2
tree60a55d36b5731d6abc5ba920a0f10b48216f3a3a
parent5494ba2282dec7a5ba50b2695df6605dc470e995
As GCC "2.96" notes, "`short int' is promoted to `int' when passed
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.
missing/snprintf.c