summaryrefslogtreecommitdiffstats
path: root/src/hashmap.h
diff options
context:
space:
mode:
authorRolf Offermanns <rof@sysgo.com>2020-06-09 10:01:00 +0200
committerRolf Offermanns <rof@sysgo.com>2020-06-09 10:01:00 +0200
commit8069df82512455e7a1d2c7d48c55f1e6ed0220c8 (patch)
tree5b595acf75bf1fe7ef0cd89dbf66daaf919e7ca4 /src/hashmap.h
parentf3a4c0dc10086d49a5d5878439d8f922887f13f6 (diff)
Only define global variables once. Fixes #1.
Diffstat (limited to 'src/hashmap.h')
-rw-r--r--src/hashmap.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/hashmap.h b/src/hashmap.h
index 920ebcb..3c30548 100644
--- a/src/hashmap.h
+++ b/src/hashmap.h
@@ -39,9 +39,11 @@ HashError decrement(pid_t key, HashMap map);
HashError set_name(pid_t key, char *name, HashMap map);
HashError get_name(pid_t key, HashMap map, struct String *name);
-struct {
+typedef struct {
int collisions;
int steps;
-} DebugStats;
+} DebugStats_t;
+
+extern DebugStats_t DebugStats;
#endif /* !HASHMAP_H */