diff options
author | brian <brian@FreeBSD.org> | 2002-08-27 20:11:58 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-08-27 20:11:58 +0000 |
commit | f2e99a8ed2b76fe50557a47b3df81d67f323369e (patch) | |
tree | cc47956d91a40346185dfb6efc8676f28cc8bdcc /usr.sbin | |
parent | 57bf7bbe3fac912b8371b0435ecafcca3a923327 (diff) | |
download | FreeBSD-src-f2e99a8ed2b76fe50557a47b3df81d67f323369e.zip FreeBSD-src-f2e99a8ed2b76fe50557a47b3df81d67f323369e.tar.gz |
Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_
Suggested by: mike
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/bundle.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/ccp.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/command.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/datalink.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/filter.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/hdlc.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/iface.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/ipcp.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/ipv6cp.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/lcp.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/link.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/main.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/mbuf.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/mp.c | 3 | ||||
-rw-r--r-- | usr.sbin/ppp/nat_cmd.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/ncp.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/physical.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/prompt.h | 7 | ||||
-rw-r--r-- | usr.sbin/ppp/radius.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/route.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/server.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/slcompress.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/throughput.c | 1 | ||||
-rw-r--r-- | usr.sbin/ppp/timer.c | 1 |
24 files changed, 26 insertions, 6 deletions
diff --git a/usr.sbin/ppp/bundle.c b/usr.sbin/ppp/bundle.c index f0c8f94..be55a6a 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -44,6 +44,7 @@ #include <libutil.h> #endif #include <paths.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index 03c56b4..78ea13a 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -35,6 +35,7 @@ #include <sys/socket.h> #include <sys/un.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> /* memcpy() on some archs */ diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index cf12305..ffa806b 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -42,6 +42,7 @@ #include <errno.h> #include <fcntl.h> #include <paths.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index a9a05b8..9f14485 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -34,6 +34,7 @@ #include <sys/un.h> #include <ctype.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c index 61f03ab..994c090 100644 --- a/usr.sbin/ppp/filter.c +++ b/usr.sbin/ppp/filter.c @@ -36,6 +36,7 @@ #include <sys/socket.h> #include <sys/un.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index 45a8951..27077dc 100644 --- a/usr.sbin/ppp/hdlc.c +++ b/usr.sbin/ppp/hdlc.c @@ -31,6 +31,7 @@ #include <sys/param.h> #include <sys/un.h> +#include <stdarg.h> #include <stdio.h> #include <string.h> #include <termios.h> diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index 922d1f0..05951d4 100644 --- a/usr.sbin/ppp/iface.c +++ b/usr.sbin/ppp/iface.c @@ -45,6 +45,7 @@ #include <errno.h> #include <string.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 0a06e8b..4ebf4b3 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -42,6 +42,7 @@ #include <errno.h> #include <fcntl.h> #include <resolv.h> +#include <stdarg.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> diff --git a/usr.sbin/ppp/ipv6cp.c b/usr.sbin/ppp/ipv6cp.c index 5db92bb..b2e30f7 100644 --- a/usr.sbin/ppp/ipv6cp.c +++ b/usr.sbin/ppp/ipv6cp.c @@ -35,6 +35,7 @@ #include <net/if.h> #include <sys/un.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index e620a2f..bfc7376 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -36,6 +36,7 @@ #include <sys/un.h> #include <signal.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/link.c b/usr.sbin/ppp/link.c index 6a2481c..d5aaca3 100644 --- a/usr.sbin/ppp/link.c +++ b/usr.sbin/ppp/link.c @@ -34,6 +34,7 @@ #include <netinet/in.h> #include <netinet/ip.h> +#include <stdarg.h> #include <stdio.h> #include <string.h> #include <termios.h> diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index fe5f2dc..7517663 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -40,6 +40,7 @@ #include <fcntl.h> #include <paths.h> #include <signal.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c index 4ba547e..5bf8199 100644 --- a/usr.sbin/ppp/mbuf.c +++ b/usr.sbin/ppp/mbuf.c @@ -30,6 +30,7 @@ #include <sys/types.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index 7e71dad..3fd9b95 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -37,8 +37,9 @@ #include <errno.h> #include <paths.h> -#include <stdlib.h> +#include <stdarg.h> #include <stdio.h> +#include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <termios.h> diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c index 6bdb3cf..deb9932 100644 --- a/usr.sbin/ppp/nat_cmd.c +++ b/usr.sbin/ppp/nat_cmd.c @@ -37,6 +37,7 @@ #include <sys/socket.h> #include <sys/un.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/ncp.c b/usr.sbin/ppp/ncp.c index ea03144..e1acafb 100644 --- a/usr.sbin/ppp/ncp.c +++ b/usr.sbin/ppp/ncp.c @@ -36,6 +36,7 @@ #include <errno.h> #include <resolv.h> +#include <stdarg.h> #include <stdlib.h> #include <string.h> #include <termios.h> diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c index 2fab974..29ea189 100644 --- a/usr.sbin/ppp/physical.c +++ b/usr.sbin/ppp/physical.c @@ -30,6 +30,7 @@ #include <errno.h> #include <fcntl.h> #include <paths.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/prompt.h b/usr.sbin/ppp/prompt.h index 4bae142..0489338 100644 --- a/usr.sbin/ppp/prompt.h +++ b/usr.sbin/ppp/prompt.h @@ -75,14 +75,11 @@ extern void prompt_Printf(struct prompt *, const char *, ...) #else extern void prompt_Printf(struct prompt *, const char *, ...); #endif -#ifndef _BSD_VA_LIST_ -#define _BSD_VA_LIST_ __va_list -#endif #ifdef __GNUC__ -extern void prompt_vPrintf(struct prompt *, const char *, _BSD_VA_LIST_) +extern void prompt_vPrintf(struct prompt *, const char *, va_list) __attribute__ ((format (printf, 2, 0))); #else -extern void prompt_vPrintf(struct prompt *, const char *, _BSD_VA_LIST_); +extern void prompt_vPrintf(struct prompt *, const char *, va_list); #endif #define PROMPT_DONT_WANT_INT 1 #define PROMPT_WANT_INT 0 diff --git a/usr.sbin/ppp/radius.c b/usr.sbin/ppp/radius.c index f9118df..d0890e8 100644 --- a/usr.sbin/ppp/radius.c +++ b/usr.sbin/ppp/radius.c @@ -49,6 +49,7 @@ #ifndef NODES #include <md5.h> #endif +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index e1a99c1..398bf69 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -41,6 +41,7 @@ #include <sys/un.h> #include <errno.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index 0c13bde..03f7b86 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -33,6 +33,7 @@ #include <sys/un.h> #include <errno.h> +#include <stdarg.h> #include <stdio.h> #include <string.h> #include <sys/stat.h> diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 5bf45e5..bebd599 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -31,6 +31,7 @@ #include <sys/socket.h> #include <sys/un.h> +#include <stdarg.h> #include <stdio.h> #include <string.h> #include <termios.h> diff --git a/usr.sbin/ppp/throughput.c b/usr.sbin/ppp/throughput.c index b0bb241..f6bc9b5 100644 --- a/usr.sbin/ppp/throughput.c +++ b/usr.sbin/ppp/throughput.c @@ -28,6 +28,7 @@ #include <sys/types.h> +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c index 9c4fc9f..77b2af7 100644 --- a/usr.sbin/ppp/timer.c +++ b/usr.sbin/ppp/timer.c @@ -30,6 +30,7 @@ #include <errno.h> #include <signal.h> +#include <stdarg.h> #include <stdio.h> #include <string.h> #include <sys/time.h> |