Assume __STDC__, remove non-__STDC__ code. Remove private __P.
This commit is contained in:
parent
91180daf65
commit
f74779bdab
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97419
@ -37,11 +37,7 @@ SOFTWARE.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __STDC__
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#else
|
|
||||||
#include <varargs.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
@ -89,17 +85,8 @@ SOFTWARE.
|
|||||||
* Externals, forward declarations, and global variables
|
* Externals, forward declarations, and global variables
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef __STDC__
|
static void mktagfile(struct host *);
|
||||||
#define P(args) args
|
static void usage(void);
|
||||||
#else
|
|
||||||
#define P(args) ()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static void mktagfile P((struct host *));
|
|
||||||
static void usage P((void));
|
|
||||||
|
|
||||||
#undef P
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* General
|
* General
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
/* bootptest.h */
|
/* bootptest.h */
|
||||||
|
/* $FreeBSD$ */
|
||||||
/*
|
/*
|
||||||
* Hacks for sharing print-bootp.c between tcpdump and bootptest.
|
* Hacks for sharing print-bootp.c between tcpdump and bootptest.
|
||||||
*/
|
*/
|
||||||
@ -19,12 +20,4 @@ extern int vflag; /* verbose flag */
|
|||||||
extern unsigned char *packetp;
|
extern unsigned char *packetp;
|
||||||
extern unsigned char *snapend;
|
extern unsigned char *snapend;
|
||||||
|
|
||||||
#ifdef __STDC__
|
extern char *ipaddr_string(struct in_addr *);
|
||||||
#define P(args) args
|
|
||||||
#else
|
|
||||||
#define P(args) ()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern char *ipaddr_string P((struct in_addr *));
|
|
||||||
|
|
||||||
#undef P
|
|
||||||
|
Loading…
Reference in New Issue
Block a user