mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 06:52:45 +00:00
This code defined a private __P, nuke it.
This commit is contained in:
parent
5ed136e814
commit
f19d047aec
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97417
@ -105,22 +105,18 @@ SOFTWARE.
|
||||
* Externals, forward declarations, and global variables
|
||||
*/
|
||||
|
||||
#define P(args) args
|
||||
extern void dumptab(char *);
|
||||
|
||||
extern void dumptab P((char *));
|
||||
|
||||
PRIVATE void catcher P((int));
|
||||
PRIVATE int chk_access P((char *, int32 *));
|
||||
PRIVATE void catcher(int);
|
||||
PRIVATE int chk_access(char *, int32 *);
|
||||
#ifdef VEND_CMU
|
||||
PRIVATE void dovend_cmu P((struct bootp *, struct host *));
|
||||
PRIVATE void dovend_cmu(struct bootp *, struct host *);
|
||||
#endif
|
||||
PRIVATE void dovend_rfc1048 P((struct bootp *, struct host *, int32));
|
||||
PRIVATE void handle_reply P((void));
|
||||
PRIVATE void handle_request P((void));
|
||||
PRIVATE void sendreply P((int forward, int32 dest_override));
|
||||
PRIVATE void usage P((void));
|
||||
|
||||
#undef P
|
||||
PRIVATE void dovend_rfc1048(struct bootp *, struct host *, int32);
|
||||
PRIVATE void handle_reply(void);
|
||||
PRIVATE void handle_request(void);
|
||||
PRIVATE void sendreply(int forward, int32 dest_override);
|
||||
PRIVATE void usage(void);
|
||||
|
||||
/*
|
||||
* IP port numbers for client and server obtained from /etc/services
|
||||
|
@ -29,9 +29,7 @@
|
||||
#include "report.h"
|
||||
#include "dovend.h"
|
||||
|
||||
#define P(args) args
|
||||
|
||||
PRIVATE int insert_generic P((struct shared_bindata *, byte **, int *));
|
||||
PRIVATE int insert_generic(struct shared_bindata *, byte **, int *);
|
||||
|
||||
/*
|
||||
* Insert the 2nd part of the options into an option buffer.
|
||||
|
@ -28,16 +28,12 @@
|
||||
#include "patchlevel.h"
|
||||
#include "bootpd.h"
|
||||
|
||||
#define P(args) args
|
||||
|
||||
#ifdef DEBUG
|
||||
static void dump_generic P((FILE *, struct shared_bindata *));
|
||||
static void dump_host P((FILE *, struct host *));
|
||||
static void list_ipaddresses P((FILE *, struct in_addr_list *));
|
||||
static void dump_generic(FILE *, struct shared_bindata *);
|
||||
static void dump_host(FILE *, struct host *);
|
||||
static void list_ipaddresses(FILE *, struct in_addr_list *);
|
||||
#endif
|
||||
|
||||
#undef P
|
||||
|
||||
#ifndef DEBUG
|
||||
void
|
||||
dumptab(filename)
|
||||
|
@ -61,11 +61,8 @@ SOFTWARE.
|
||||
#define PRIVATE static
|
||||
#endif
|
||||
|
||||
#define P(args) args
|
||||
PRIVATE void hashi_FreeMembers(hash_member *, hash_freefp);
|
||||
|
||||
PRIVATE void hashi_FreeMembers P((hash_member *, hash_freefp));
|
||||
|
||||
#undef P
|
||||
|
||||
|
||||
|
||||
|
@ -117,35 +117,32 @@ struct hash_tblstruct {
|
||||
};
|
||||
|
||||
/* ANSI function prototypes or empty arg list? */
|
||||
#define P(args) args
|
||||
|
||||
typedef int (*hash_cmpfp) P((hash_datum *, hash_datum *));
|
||||
typedef void (*hash_freefp) P((hash_datum *));
|
||||
typedef int (*hash_cmpfp)(hash_datum *, hash_datum *);
|
||||
typedef void (*hash_freefp)(hash_datum *);
|
||||
|
||||
extern hash_tbl *hash_Init P((u_int tablesize));
|
||||
extern hash_tbl *hash_Init(u_int tablesize);
|
||||
|
||||
extern void hash_Reset P((hash_tbl *tbl, hash_freefp));
|
||||
extern void hash_Reset(hash_tbl *tbl, hash_freefp);
|
||||
|
||||
extern unsigned hash_HashFunction P((u_char *str, u_int len));
|
||||
extern unsigned hash_HashFunction(u_char *str, u_int len);
|
||||
|
||||
extern int hash_Exists P((hash_tbl *, u_int code,
|
||||
hash_cmpfp, hash_datum *key));
|
||||
extern int hash_Exists(hash_tbl *, u_int code,
|
||||
hash_cmpfp, hash_datum *key);
|
||||
|
||||
extern int hash_Insert P((hash_tbl *, u_int code,
|
||||
extern int hash_Insert(hash_tbl *, u_int code,
|
||||
hash_cmpfp, hash_datum *key,
|
||||
hash_datum *element));
|
||||
hash_datum *element);
|
||||
|
||||
extern int hash_Delete P((hash_tbl *, u_int code,
|
||||
extern int hash_Delete(hash_tbl *, u_int code,
|
||||
hash_cmpfp, hash_datum *key,
|
||||
hash_freefp));
|
||||
hash_freefp);
|
||||
|
||||
extern hash_datum *hash_Lookup P((hash_tbl *, u_int code,
|
||||
hash_cmpfp, hash_datum *key));
|
||||
extern hash_datum *hash_Lookup(hash_tbl *, u_int code,
|
||||
hash_cmpfp, hash_datum *key);
|
||||
|
||||
extern hash_datum *hash_FirstEntry P((hash_tbl *));
|
||||
extern hash_datum *hash_FirstEntry(hash_tbl *);
|
||||
|
||||
extern hash_datum *hash_NextEntry P((hash_tbl *));
|
||||
|
||||
#undef P
|
||||
extern hash_datum *hash_NextEntry(hash_tbl *);
|
||||
|
||||
#endif /* HASH_H */
|
||||
|
@ -22,13 +22,9 @@ struct hwinfo {
|
||||
extern struct hwinfo hwinfolist[];
|
||||
extern int hwinfocnt;
|
||||
|
||||
#define P(args) args
|
||||
|
||||
extern void setarp P((int, struct in_addr *, int, u_char *, int));
|
||||
extern char *haddrtoa P((u_char *, int));
|
||||
extern void haddr_conv802 P((u_char *, u_char *, int));
|
||||
|
||||
#undef P
|
||||
extern void setarp(int, struct in_addr *, int, u_char *, int);
|
||||
extern char *haddrtoa(u_char *, int);
|
||||
extern void haddr_conv802(u_char *, u_char *, int);
|
||||
|
||||
/*
|
||||
* Return the length in bytes of a hardware address of the given type.
|
||||
|
@ -227,59 +227,55 @@ PRIVATE struct htypename htnamemap[] = {
|
||||
* Externals and forward declarations.
|
||||
*/
|
||||
|
||||
#define P(args) args
|
||||
|
||||
extern boolean iplookcmp();
|
||||
boolean nmcmp P((hash_datum *, hash_datum *));
|
||||
boolean nmcmp(hash_datum *, hash_datum *);
|
||||
|
||||
PRIVATE void
|
||||
adjust P((char **));
|
||||
adjust(char **);
|
||||
PRIVATE void
|
||||
del_string P((struct shared_string *));
|
||||
del_string(struct shared_string *);
|
||||
PRIVATE void
|
||||
del_bindata P((struct shared_bindata *));
|
||||
del_bindata(struct shared_bindata *);
|
||||
PRIVATE void
|
||||
del_iplist P((struct in_addr_list *));
|
||||
del_iplist(struct in_addr_list *);
|
||||
PRIVATE void
|
||||
eat_whitespace P((char **));
|
||||
eat_whitespace(char **);
|
||||
PRIVATE int
|
||||
eval_symbol P((char **, struct host *));
|
||||
eval_symbol(char **, struct host *);
|
||||
PRIVATE void
|
||||
fill_defaults P((struct host *, char **));
|
||||
fill_defaults(struct host *, char **);
|
||||
PRIVATE void
|
||||
free_host P((hash_datum *));
|
||||
free_host(hash_datum *);
|
||||
PRIVATE struct in_addr_list *
|
||||
get_addresses P((char **));
|
||||
get_addresses(char **);
|
||||
PRIVATE struct shared_string *
|
||||
get_shared_string P((char **));
|
||||
get_shared_string(char **);
|
||||
PRIVATE char *
|
||||
get_string P((char **, char *, u_int *));
|
||||
get_string(char **, char *, u_int *);
|
||||
PRIVATE u_int32
|
||||
get_u_long P((char **));
|
||||
get_u_long(char **);
|
||||
PRIVATE boolean
|
||||
goodname P((char *));
|
||||
goodname(char *);
|
||||
PRIVATE boolean
|
||||
hwinscmp P((hash_datum *, hash_datum *));
|
||||
hwinscmp(hash_datum *, hash_datum *);
|
||||
PRIVATE int
|
||||
interp_byte P((char **, byte *));
|
||||
interp_byte(char **, byte *);
|
||||
PRIVATE void
|
||||
makelower P((char *));
|
||||
makelower(char *);
|
||||
PRIVATE boolean
|
||||
nullcmp P((hash_datum *, hash_datum *));
|
||||
nullcmp(hash_datum *, hash_datum *);
|
||||
PRIVATE int
|
||||
process_entry P((struct host *, char *));
|
||||
process_entry(struct host *, char *);
|
||||
PRIVATE int
|
||||
process_generic P((char **, struct shared_bindata **, u_int));
|
||||
process_generic(char **, struct shared_bindata **, u_int);
|
||||
PRIVATE byte *
|
||||
prs_haddr P((char **, u_int));
|
||||
prs_haddr(char **, u_int);
|
||||
PRIVATE int
|
||||
prs_inetaddr P((char **, u_int32 *));
|
||||
prs_inetaddr(char **, u_int32 *);
|
||||
PRIVATE void
|
||||
read_entry P((FILE *, char *, u_int *));
|
||||
read_entry(FILE *, char *, u_int *);
|
||||
PRIVATE char *
|
||||
smalloc P((u_int));
|
||||
|
||||
#undef P
|
||||
smalloc(u_int);
|
||||
|
||||
|
||||
/*
|
||||
|
@ -1,10 +1,6 @@
|
||||
/* report.h */
|
||||
/* $FreeBSD$ */
|
||||
|
||||
#define P(args) args
|
||||
|
||||
extern void report_init P((int nolog));
|
||||
extern void report P((int, const char *, ...)) __printflike(2, 3);
|
||||
extern const char *get_errmsg P((void));
|
||||
|
||||
#undef P
|
||||
extern void report_init(int nolog);
|
||||
extern void report(int, const char *, ...) __printflike(2, 3);
|
||||
extern const char *get_errmsg(void);
|
||||
|
Loading…
Reference in New Issue
Block a user