diff options
author | alfred <alfred@FreeBSD.org> | 2002-05-28 18:36:43 +0000 |
---|---|---|
committer | alfred <alfred@FreeBSD.org> | 2002-05-28 18:36:43 +0000 |
commit | d1950fa2570d75cdfe788d1c37b8bbeac9f1bd2f (patch) | |
tree | ce9f350c8701d94e008a4a7dde04373b9afe18d7 /libexec/bootpd/hash.h | |
parent | d91b7c2d0fac80c74a2783b84fdba5ae0b941b1c (diff) | |
download | FreeBSD-src-d1950fa2570d75cdfe788d1c37b8bbeac9f1bd2f.zip FreeBSD-src-d1950fa2570d75cdfe788d1c37b8bbeac9f1bd2f.tar.gz |
This code defined a private __P, nuke it.
Diffstat (limited to 'libexec/bootpd/hash.h')
-rw-r--r-- | libexec/bootpd/hash.h | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/libexec/bootpd/hash.h b/libexec/bootpd/hash.h index 8ef1d91..22cdc04 100644 --- a/libexec/bootpd/hash.h +++ b/libexec/bootpd/hash.h @@ -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 */ |