summaryrefslogtreecommitdiffstats
path: root/libexec/bootpd/hash.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-05-28 18:36:43 +0000
committeralfred <alfred@FreeBSD.org>2002-05-28 18:36:43 +0000
commitd1950fa2570d75cdfe788d1c37b8bbeac9f1bd2f (patch)
treece9f350c8701d94e008a4a7dde04373b9afe18d7 /libexec/bootpd/hash.h
parentd91b7c2d0fac80c74a2783b84fdba5ae0b941b1c (diff)
downloadFreeBSD-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.h33
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 */
OpenPOWER on IntegriCloud