summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorNiels Provos <provos@cvs.openbsd.org>1998-07-10 20:27:43 +0000
committerNiels Provos <provos@cvs.openbsd.org>1998-07-10 20:27:43 +0000
commit4fd3d6f52d265f3d3ff1edfd295834c788cd2ed8 (patch)
treec4673aefbe142376831becd8e471a32f49da3eb1 /sbin
parent8111cbc64ca16e30809c728a86401ac67e608f79 (diff)
fix va_arg handling when not __STDC__
Diffstat (limited to 'sbin')
-rw-r--r--sbin/ipsec/photurisd/errlog.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sbin/ipsec/photurisd/errlog.c b/sbin/ipsec/photurisd/errlog.c
index 29415299a67..70d02e24ec3 100644
--- a/sbin/ipsec/photurisd/errlog.c
+++ b/sbin/ipsec/photurisd/errlog.c
@@ -31,11 +31,11 @@
*/
/*
- * $OpenBSD: errlog.c,v 1.5 1997/09/03 08:44:41 provos Exp $
+ * $OpenBSD: errlog.c,v 1.6 1998/07/10 20:27:42 provos Exp $
*/
#ifndef lint
-static char rcsid[] = "$Id: errlog.c,v 1.5 1997/09/03 08:44:41 provos Exp $";
+static char rcsid[] = "$Id: errlog.c,v 1.6 1998/07/10 20:27:42 provos Exp $";
#endif
#define _ERRLOG_C_
@@ -88,6 +88,7 @@ crit_error(flag, fmt, va_alist)
va_start(ap, fmt);
#else
va_start(ap);
+ fmt = va_arg (ap, char *);
#endif
_log_error(flag, fmt, ap);
va_end(ap);
@@ -114,6 +115,7 @@ log_error(flag, fmt, va_alist)
va_start(ap, fmt);
#else
va_start(ap);
+ fmt = va_arg (ap, char *);
#endif
_log_error(flag, fmt, ap);
va_end(ap);