unifdef __STDC__

This commit is contained in:
wiz 2002-07-06 21:46:59 +00:00
parent 7146bf3ca6
commit f718edfc2a
2 changed files with 4 additions and 19 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fakelog.c,v 1.4 2000/12/30 21:45:44 martin Exp $ */
/* $NetBSD: fakelog.c,v 1.5 2002/07/06 21:46:59 wiz Exp $ */
/*
* This module intercepts syslog() library calls and redirects their output
@ -12,7 +12,7 @@
#if 0
static char sccsid[] = "@(#) fakelog.c 1.3 94/12/28 17:42:21";
#else
__RCSID("$NetBSD: fakelog.c,v 1.4 2000/12/30 21:45:44 martin Exp $");
__RCSID("$NetBSD: fakelog.c,v 1.5 2002/07/06 21:46:59 wiz Exp $");
#endif
#endif
@ -55,24 +55,11 @@ _BSD_VA_LIST_ ap;
/* VARARGS */
void
#ifdef __STDC__
syslog(int severity, const char *fmt, ...)
#else
syslog(va_alist)
va_dcl
#endif
{
va_list ap;
#ifndef __STDC__
int severity;
char *fmt;
va_start(ap);
severity = va_arg(ap, int);
fmt = va_arg(ap, char *);
#else
va_start(ap, fmt);
#endif
vsyslog(severity, fmt, ap);
va_end(ap);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: ifaddrlist.c,v 1.4 2000/04/13 07:53:29 itojun Exp $ */
/* $NetBSD: ifaddrlist.c,v 1.5 2002/07/06 21:51:30 wiz Exp $ */
/*
* Copyright (c) 1997
@ -39,7 +39,7 @@
static const char rcsid[] =
"@(#) Header: ifaddrlist.c,v 1.2 97/04/22 13:31:05 leres Exp (LBL)";
#else
__RCSID("$NetBSD: ifaddrlist.c,v 1.4 2000/04/13 07:53:29 itojun Exp $");
__RCSID("$NetBSD: ifaddrlist.c,v 1.5 2002/07/06 21:51:30 wiz Exp $");
#endif
#endif
@ -52,10 +52,8 @@ __RCSID("$NetBSD: ifaddrlist.c,v 1.4 2000/04/13 07:53:29 itojun Exp $");
#endif
#include <sys/time.h> /* concession to AIX */
#if __STDC__
struct mbuf;
struct rtentry;
#endif
#include <net/if.h>
#include <netinet/in.h>