summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2012-11-06 11:25:44 -0800
committerEric Anholt <eric@anholt.net>2012-11-06 11:25:44 -0800
commit1eb6544fdf947a01910c27dd89926d1f5b310700 (patch)
tree448071cc754f852f86d18c2021abb0f46c6e228a
parent437e1d7f1bbadebf2ff113e112bb837b13aafc5c (diff)
Make the deleted_key variables static const.
I think I may have made them public thinking of reaching over for them in testcases for poking at deleted key behavior, but this makes more sense. Noted by Chad Versace.
-rw-r--r--hash_table.c4
-rw-r--r--set.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/hash_table.c b/hash_table.c
index 2e0adc0..d097039 100644
--- a/hash_table.c
+++ b/hash_table.c
@@ -44,8 +44,8 @@
* free to avoid exponential performance degradation as the hash table fills
*/
-uint32_t deleted_key_value;
-const void *deleted_key = &deleted_key_value;
+static const uint32_t deleted_key_value;
+static const void *deleted_key = &deleted_key_value;
static const struct {
uint32_t max_entries, size, rehash;
diff --git a/set.c b/set.c
index edc4e4e..b525bcb 100644
--- a/set.c
+++ b/set.c
@@ -44,8 +44,8 @@
* free to avoid exponential performance degradation as the hash table fills
*/
-uint32_t deleted_key_value;
-const void *deleted_key = &deleted_key_value;
+static const uint32_t deleted_key_value;
+static const void *deleted_key = &deleted_key_value;
static const struct {
uint32_t max_entries, size, rehash;