summaryrefslogtreecommitdiff
path: root/examples/gehashmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gehashmap.c')
-rw-r--r--examples/gehashmap.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/examples/gehashmap.c b/examples/gehashmap.c
index a29ef14..85c007f 100644
--- a/examples/gehashmap.c
+++ b/examples/gehashmap.c
@@ -1,3 +1,5 @@
+#define _XOPEN_SOURCE 500
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -19,18 +21,6 @@ itoumap_key_iseq(int a, int b)
return a == b;
}
-void
-atoimap_key_free(char *s)
-{
- free(s);
-}
-
-void
-itoumap_key_free(int a)
-{
- (void) a;
-}
-
size_t
atoimap_key_hash(char *s)
{