From 6eafd35305dee6df318b4652fdea0360ab4c4569 Mon Sep 17 00:00:00 2001 From: Brian Somers Date: Tue, 27 Aug 2002 20:11:58 +0000 Subject: [PATCH] Include the correct file (stdarg.h) and use va_list rather than _BSD_VA_LIST_ Suggested by: mike --- usr.sbin/ppp/bundle.c | 1 + usr.sbin/ppp/ccp.c | 1 + usr.sbin/ppp/command.c | 1 + usr.sbin/ppp/datalink.c | 1 + usr.sbin/ppp/filter.c | 1 + usr.sbin/ppp/hdlc.c | 1 + usr.sbin/ppp/iface.c | 1 + usr.sbin/ppp/ipcp.c | 1 + usr.sbin/ppp/ipv6cp.c | 1 + usr.sbin/ppp/lcp.c | 1 + usr.sbin/ppp/link.c | 1 + usr.sbin/ppp/main.c | 1 + usr.sbin/ppp/mbuf.c | 1 + usr.sbin/ppp/mp.c | 3 ++- usr.sbin/ppp/nat_cmd.c | 1 + usr.sbin/ppp/ncp.c | 1 + usr.sbin/ppp/physical.c | 1 + usr.sbin/ppp/prompt.h | 7 ++----- usr.sbin/ppp/radius.c | 1 + usr.sbin/ppp/route.c | 1 + usr.sbin/ppp/server.c | 1 + usr.sbin/ppp/slcompress.c | 1 + usr.sbin/ppp/throughput.c | 1 + 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 f0c8f94ee805..be55a6a94e0d 100644 --- a/usr.sbin/ppp/bundle.c +++ b/usr.sbin/ppp/bundle.c @@ -44,6 +44,7 @@ #include #endif #include +#include #include #include #include diff --git a/usr.sbin/ppp/ccp.c b/usr.sbin/ppp/ccp.c index 03c56b4939b8..78ea13ab15d5 100644 --- a/usr.sbin/ppp/ccp.c +++ b/usr.sbin/ppp/ccp.c @@ -35,6 +35,7 @@ #include #include +#include #include #include #include /* memcpy() on some archs */ diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index cf12305de01e..ffa806b01f7b 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/datalink.c b/usr.sbin/ppp/datalink.c index a9a05b8fda1f..9f1448577ad7 100644 --- a/usr.sbin/ppp/datalink.c +++ b/usr.sbin/ppp/datalink.c @@ -34,6 +34,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/filter.c b/usr.sbin/ppp/filter.c index 61f03ab472a5..994c09072260 100644 --- a/usr.sbin/ppp/filter.c +++ b/usr.sbin/ppp/filter.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/hdlc.c b/usr.sbin/ppp/hdlc.c index 45a89511f1cd..27077dcef7cc 100644 --- a/usr.sbin/ppp/hdlc.c +++ b/usr.sbin/ppp/hdlc.c @@ -31,6 +31,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/iface.c b/usr.sbin/ppp/iface.c index 922d1f05ef08..05951d4da116 100644 --- a/usr.sbin/ppp/iface.c +++ b/usr.sbin/ppp/iface.c @@ -45,6 +45,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/ipcp.c b/usr.sbin/ppp/ipcp.c index 0a06e8b4cd36..4ebf4b3ac5f3 100644 --- a/usr.sbin/ppp/ipcp.c +++ b/usr.sbin/ppp/ipcp.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/ipv6cp.c b/usr.sbin/ppp/ipv6cp.c index 5db92bbdd4da..b2e30f7a3609 100644 --- a/usr.sbin/ppp/ipv6cp.c +++ b/usr.sbin/ppp/ipv6cp.c @@ -35,6 +35,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/lcp.c b/usr.sbin/ppp/lcp.c index e620a2f3c83f..bfc7376d9e67 100644 --- a/usr.sbin/ppp/lcp.c +++ b/usr.sbin/ppp/lcp.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/link.c b/usr.sbin/ppp/link.c index 6a2481cd42f1..d5aaca3dd3ef 100644 --- a/usr.sbin/ppp/link.c +++ b/usr.sbin/ppp/link.c @@ -34,6 +34,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/main.c b/usr.sbin/ppp/main.c index fe5f2dcc1aeb..7517663240c9 100644 --- a/usr.sbin/ppp/main.c +++ b/usr.sbin/ppp/main.c @@ -40,6 +40,7 @@ #include #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/mbuf.c b/usr.sbin/ppp/mbuf.c index 4ba547e231dc..5bf819928960 100644 --- a/usr.sbin/ppp/mbuf.c +++ b/usr.sbin/ppp/mbuf.c @@ -30,6 +30,7 @@ #include +#include #include #include #include diff --git a/usr.sbin/ppp/mp.c b/usr.sbin/ppp/mp.c index 7e71dadbed82..3fd9b95c232c 100644 --- a/usr.sbin/ppp/mp.c +++ b/usr.sbin/ppp/mp.c @@ -37,8 +37,9 @@ #include #include -#include +#include #include +#include #include #include #include diff --git a/usr.sbin/ppp/nat_cmd.c b/usr.sbin/ppp/nat_cmd.c index 6bdb3cf74700..deb9932fc579 100644 --- a/usr.sbin/ppp/nat_cmd.c +++ b/usr.sbin/ppp/nat_cmd.c @@ -37,6 +37,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/ncp.c b/usr.sbin/ppp/ncp.c index ea031444189a..e1acafbfc46b 100644 --- a/usr.sbin/ppp/ncp.c +++ b/usr.sbin/ppp/ncp.c @@ -36,6 +36,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c index 2fab9740dd0c..29ea189fa159 100644 --- a/usr.sbin/ppp/physical.c +++ b/usr.sbin/ppp/physical.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/prompt.h b/usr.sbin/ppp/prompt.h index 4bae142098be..048933825790 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 f9118df74fd2..d0890e8e1a45 100644 --- a/usr.sbin/ppp/radius.c +++ b/usr.sbin/ppp/radius.c @@ -49,6 +49,7 @@ #ifndef NODES #include #endif +#include #include #include #include diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c index e1a99c17ea67..398bf693b9a8 100644 --- a/usr.sbin/ppp/route.c +++ b/usr.sbin/ppp/route.c @@ -41,6 +41,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/server.c b/usr.sbin/ppp/server.c index 0c13bde3ca57..03f7b866d98b 100644 --- a/usr.sbin/ppp/server.c +++ b/usr.sbin/ppp/server.c @@ -33,6 +33,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/slcompress.c b/usr.sbin/ppp/slcompress.c index 5bf45e5ad4be..bebd599b2bd3 100644 --- a/usr.sbin/ppp/slcompress.c +++ b/usr.sbin/ppp/slcompress.c @@ -31,6 +31,7 @@ #include #include +#include #include #include #include diff --git a/usr.sbin/ppp/throughput.c b/usr.sbin/ppp/throughput.c index b0bb241724dc..f6bc9b57d1d3 100644 --- a/usr.sbin/ppp/throughput.c +++ b/usr.sbin/ppp/throughput.c @@ -28,6 +28,7 @@ #include +#include #include #include #include diff --git a/usr.sbin/ppp/timer.c b/usr.sbin/ppp/timer.c index 9c4fc9f10599..77b2af7e4f44 100644 --- a/usr.sbin/ppp/timer.c +++ b/usr.sbin/ppp/timer.c @@ -30,6 +30,7 @@ #include #include +#include #include #include #include