From: Ken Raeburn Date: Sat, 20 Jan 2007 16:54:37 +0000 (+0000) Subject: Remove varargs.h paths, always use stdarg.h X-Git-Tag: krb5-1.7-alpha1~1337 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9ddc73e01dcfaba5a1325bf355566a16a397092c;p=krb5.git Remove varargs.h paths, always use stdarg.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19088 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index b6646f8cb..a24dde0fb 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -60,11 +60,7 @@ char copyright[] = #ifdef HAVE_VFORK_H #include #endif -#ifdef HAVE_STDARG_H #include -#else -#include -#endif #include #ifdef KERBEROS diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index 7767976c4..5a9baa379 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -119,12 +119,8 @@ char copyright[] = #include #include #endif -#ifdef HAVE_STDARG_H #include -#else -#include -#endif - + #include #if !defined(KERBEROS) || !defined(KRB5_KRB4_COMPAT) /* Ultrix doesn't protect it vs multiple inclusion, and krb.h includes it */ diff --git a/src/appl/bsd/v4rcp.c b/src/appl/bsd/v4rcp.c index a339e5b23..13b46233a 100644 --- a/src/appl/bsd/v4rcp.c +++ b/src/appl/bsd/v4rcp.c @@ -73,11 +73,7 @@ static char sccsid[] = "@(#)rcp.c 5.10 (Berkeley) 9/20/88"; #include #endif #include -#ifdef HAVE_STDARG_H #include -#else -#include -#endif #include "port-sockets.h" diff --git a/src/appl/telnet/telnet/commands.c b/src/appl/telnet/telnet/commands.c index f6c0fcdb4..57106de7f 100644 --- a/src/appl/telnet/telnet/commands.c +++ b/src/appl/telnet/telnet/commands.c @@ -61,11 +61,7 @@ #include #include #include -#ifdef HAVE_STDARG_H #include -#else -#include -#endif #include #ifdef HAVE_VFORK_H #include diff --git a/src/kadmin/passwd/xm_kpasswd.c b/src/kadmin/passwd/xm_kpasswd.c index 66976208a..a55b052c3 100644 --- a/src/kadmin/passwd/xm_kpasswd.c +++ b/src/kadmin/passwd/xm_kpasswd.c @@ -84,14 +84,7 @@ SetWatchCursor() * Set up a com_err hook, for displaying to a motif scrolling widget. */ -#if __STDC__ -# include -#else /* varargs: not STDC or no */ - /* Non-ANSI, always take path. */ -# undef VARARGS -# define VARARGS 1 -# include -#endif /* varargs */ +#include static void #ifdef __STDC__ diff --git a/src/lib/kadm5/logger.c b/src/lib/kadm5/logger.c index e9c7bfd49..212034bb9 100644 --- a/src/lib/kadm5/logger.c +++ b/src/lib/kadm5/logger.c @@ -39,11 +39,7 @@ #ifdef HAVE_SYSLOG_H #include #endif /* HAVE_SYSLOG_H */ -#ifdef HAVE_STDARG_H #include -#else /* HAVE_STDARG_H */ -#include -#endif /* HAVE_STDARG_H */ #define KRB5_KLOG_MAX_ERRMSG_SIZE 1024 #ifndef MAXHOSTNAMELEN diff --git a/src/plugins/kdb/db2/libdb2/test/dbtest.c b/src/plugins/kdb/db2/libdb2/test/dbtest.c index 10a89a6fa..d479f1967 100644 --- a/src/plugins/kdb/db2/libdb2/test/dbtest.c +++ b/src/plugins/kdb/db2/libdb2/test/dbtest.c @@ -738,27 +738,13 @@ usage() exit(1); } -#ifdef __STDC__ #include -#else -#include -#endif void -#ifdef __STDC__ err(const char *fmt, ...) -#else -err(fmt, va_alist) - char *fmt; - va_dcl -#endif { va_list ap; -#ifdef __STDC__ va_start(ap, fmt); -#else - va_start(ap); -#endif (void)fprintf(stderr, "dbtest: "); (void)vfprintf(stderr, fmt, ap); va_end(ap);