diff options
author | 1997-03-29 04:17:22 +0000 | |
---|---|---|
committer | 1997-03-29 04:17:22 +0000 | |
commit | dfb28f4b7760a3994e3ed9efce60025928b8881c (patch) | |
tree | d2463cefa73873bba231ed04ffc6896d2ea79291 /usr.sbin/pppd/main.c | |
parent | Use getdomainname() not yp_get_default_domain(). (diff) | |
download | wireguard-openbsd-dfb28f4b7760a3994e3ed9efce60025928b8881c.tar.xz wireguard-openbsd-dfb28f4b7760a3994e3ed9efce60025928b8881c.zip |
Changed definition of 'a' in vfmtmsg from void * to va_list.
Possible fix for PR#130.
Diffstat (limited to 'usr.sbin/pppd/main.c')
-rw-r--r-- | usr.sbin/pppd/main.c | 8 |
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; |