diff options
author | Eric Anholt <eric@anholt.net> | 2012-11-06 11:25:44 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-11-06 11:25:44 -0800 |
commit | 1eb6544fdf947a01910c27dd89926d1f5b310700 (patch) | |
tree | 448071cc754f852f86d18c2021abb0f46c6e228a | |
parent | 437e1d7f1bbadebf2ff113e112bb837b13aafc5c (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.c | 4 | ||||
-rw-r--r-- | set.c | 4 |
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; @@ -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; |