From dfb28f4b7760a3994e3ed9efce60025928b8881c Mon Sep 17 00:00:00 2001 From: dgregor Date: Sat, 29 Mar 1997 04:17:22 +0000 Subject: [PATCH] Changed definition of 'a' in vfmtmsg from void * to va_list. Possible fix for PR#130. --- usr.sbin/pppd/main.c | 8 ++++---- 1 file 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 @@ -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; -- 2.20.1