summaryrefslogtreecommitdiff
path: root/src/openvpn/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/openvpn/list.c')
-rw-r--r--src/openvpn/list.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/openvpn/list.c b/src/openvpn/list.c
index 09e393a..c453726 100644
--- a/src/openvpn/list.c
+++ b/src/openvpn/list.c
@@ -5,7 +5,7 @@
* packet encryption, packet authentication, and
* packet compression.
*
- * Copyright (C) 2002-2018 OpenVPN Inc <sales@openvpn.net>
+ * Copyright (C) 2002-2021 OpenVPN Inc <sales@openvpn.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
@@ -29,7 +29,6 @@
#include "syshead.h"
-#if P2MP_SERVER
#include "integer.h"
#include "list.h"
@@ -222,18 +221,6 @@ hash_remove_marked(struct hash *hash, struct hash_bucket *bucket)
}
}
-uint32_t
-void_ptr_hash_function(const void *key, uint32_t iv)
-{
- return hash_func((const void *)&key, sizeof(key), iv);
-}
-
-bool
-void_ptr_compare_function(const void *key1, const void *key2)
-{
- return key1 == key2;
-}
-
void
hash_iterator_init_range(struct hash *hash,
struct hash_iterator *hi,
@@ -668,10 +655,3 @@ hash_func(const uint8_t *k, uint32_t length, uint32_t initval)
/*-------------------------------------- report the result */
return c;
}
-
-#else /* if P2MP_SERVER */
-static void
-dummy(void)
-{
-}
-#endif /* P2MP_SERVER */