summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authordgregor <dgregor@cvs.openbsd.org>1997-03-29 04:17:23 +0000
committerdgregor <dgregor@cvs.openbsd.org>1997-03-29 04:17:23 +0000
commit5f1eee82bb7ecfad37fa1275c10e0bc2612e699d (patch)
tree4a751cec146d96366bb52840fffbdc52e61ee9af /usr.sbin
parentb569f413f3c5fa6267a2baac4e73eda7284968a2 (diff)
Changed definition of 'a' in vfmtmsg from void * to va_list.
Possible fix for PR#130.
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pppd/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/pppd/main.c b/usr.sbin/pppd/main.c
index 4b22f934e12..13c793d96ad 100644
--- a/usr.sbin/pppd/main.c
+++ b/usr.sbin/pppd/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.14 1997/01/23 02:18:05 niklas Exp $ */
+/* $OpenBSD: main.c,v 1.15 1997/03/29 04:17:22 dgregor Exp $ */
/*
* main.c - Point-to-Point Protocol main module
@@ -20,7 +20,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: main.c,v 1.14 1997/01/23 02:18:05 niklas Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.15 1997/03/29 04:17:22 dgregor Exp $";
#endif
#include <stdio.h>
@@ -1348,7 +1348,7 @@ vfmtmsg(buf, buflen, fmt, args)
unsigned long val;
char *str, *f, *buf0;
unsigned char *p;
- void *a;
+ va_list a;
char num[32];
time_t t;
static char hexchars[] = "0123456789abcdef";
@@ -1444,7 +1444,7 @@ vfmtmsg(buf, buflen, fmt, args)
* XXX We assume a va_list is either a pointer or an array, so
* what gets passed for a va_list is like a void * in some sense.
*/
- a = va_arg(args, void *);
+ a = va_arg(args, va_list);
n = vfmtmsg(buf, buflen + 1, f, a);
buf += n;
buflen -= n;