summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-personality.h
blob: 70cece647a58aab9d165ab047aba907a90faaf58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- personality.h.orig	2007-05-28 08:12:52.000000000 +0200
+++ personality.h	2020-09-22 15:57:29.215618000 +0200
@@ -179,7 +179,8 @@
 void print_perstree(void);
 
 /* Splay stuff here so other modules can use it */
-SPLAY_HEAD(perstree, personality) personalities;
+typedef SPLAY_HEAD(perstree, personality) personalities_t;
+extern personalities_t personalities;
 static int
 perscompare(struct personality *a, struct personality *b)
 {
@@ -187,7 +187,8 @@
 }
 SPLAY_PROTOTYPE(perstree, personality, node, perscompare);
 
-SPLAY_HEAD(xp_fprint_tree, xp_fingerprint) xp_fprints;
+typedef SPLAY_HEAD(xp_fprint_tree, xp_fingerprint) xp_fprints_t;
+extern xp_fprints_t xp_fprints;
 static int 
 xp_fprint_compare(struct xp_fingerprint *a, struct xp_fingerprint *b)
 {