summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>2002-08-27 20:11:58 +0000
committerbrian <brian@FreeBSD.org>2002-08-27 20:11:58 +0000
commitf2e99a8ed2b76fe50557a47b3df81d67f323369e (patch)
treecc47956d91a40346185dfb6efc8676f28cc8bdcc /usr.sbin
parent57bf7bbe3fac912b8371b0435ecafcca3a923327 (diff)
downloadFreeBSD-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.c1
-rw-r--r--usr.sbin/ppp/ccp.c1
-rw-r--r--usr.sbin/ppp/command.c1
-rw-r--r--usr.sbin/ppp/datalink.c1
-rw-r--r--usr.sbin/ppp/filter.c1
-rw-r--r--usr.sbin/ppp/hdlc.c1
-rw-r--r--usr.sbin/ppp/iface.c1
-rw-r--r--usr.sbin/ppp/ipcp.c1
-rw-r--r--usr.sbin/ppp/ipv6cp.c1
-rw-r--r--usr.sbin/ppp/lcp.c1
-rw-r--r--usr.sbin/ppp/link.c1
-rw-r--r--usr.sbin/ppp/main.c1
-rw-r--r--usr.sbin/ppp/mbuf.c1
-rw-r--r--usr.sbin/ppp/mp.c3
-rw-r--r--usr.sbin/ppp/nat_cmd.c1
-rw-r--r--usr.sbin/ppp/ncp.c1
-rw-r--r--usr.sbin/ppp/physical.c1
-rw-r--r--usr.sbin/ppp/prompt.h7
-rw-r--r--usr.sbin/ppp/radius.c1
-rw-r--r--usr.sbin/ppp/route.c1
-rw-r--r--usr.sbin/ppp/server.c1
-rw-r--r--usr.sbin/ppp/slcompress.c1
-rw-r--r--usr.sbin/ppp/throughput.c1
-rw-r--r--usr.sbin/ppp/timer.c1
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>
OpenPOWER on IntegriCloud