diff options
| author | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-05 05:31:39 +0200 | 
|---|---|---|
| committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-05 05:31:39 +0200 | 
| commit | ad143fd8c06f2d46559e99c54fa2b611a25e3cc9 (patch) | |
| tree | a41d90854436fbbdeb419142acec13d85d2116d4 | |
| parent | 296cc704a16dfa19c31286bd9169f6a6836c70a4 (diff) | |
| download | liberty-ad143fd8c06f2d46559e99c54fa2b611a25e3cc9.tar.gz liberty-ad143fd8c06f2d46559e99c54fa2b611a25e3cc9.tar.xz liberty-ad143fd8c06f2d46559e99c54fa2b611a25e3cc9.zip | |
Add some constness to str_map methods
| -rw-r--r-- | liberty.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| @@ -827,7 +827,7 @@ str_map_free (struct str_map *self)  }  static uint64_t -str_map_pos (struct str_map *self, const char *s) +str_map_pos (const struct str_map *self, const char *s)  {  	size_t mask = self->alloc - 1;  	return siphash_wrapper (s, strlen (s)) & mask; @@ -943,7 +943,7 @@ str_map_set (struct str_map *self, const char *key, void *value)  }  static void * -str_map_find_real (struct str_map *self, const char *key) +str_map_find_real (const struct str_map *self, const char *key)  {  	struct str_map_link *iter = self->map[str_map_pos (self, key)];  	for (; iter; iter = iter->next) @@ -953,7 +953,7 @@ str_map_find_real (struct str_map *self, const char *key)  }  static void * -str_map_find (struct str_map *self, const char *key) +str_map_find (const struct str_map *self, const char *key)  {  	if (!self->key_xfrm)  		return str_map_find_real (self, key); | 
