diff options
author | Eric Anholt <eric@anholt.net> | 2012-11-06 11:52:38 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2012-11-06 11:52:38 -0800 |
commit | 28be2a358009b3366002fe50dc3def0db6fe7c38 (patch) | |
tree | 0c90ab8a2e3f6e4c8de9bd887631c92f5a40aef8 | |
parent | 1eb6544fdf947a01910c27dd89926d1f5b310700 (diff) |
Make a few function args const.
Noted by Brian Paul in review for Mesa.
-rw-r--r-- | hash_table.c | 6 | ||||
-rw-r--r-- | set.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/hash_table.c b/hash_table.c index d097039..cb6884e 100644 --- a/hash_table.c +++ b/hash_table.c @@ -84,19 +84,19 @@ static const struct { }; static int -entry_is_free(struct hash_entry *entry) +entry_is_free(const struct hash_entry *entry) { return entry->key == NULL; } static int -entry_is_deleted(struct hash_entry *entry) +entry_is_deleted(const struct hash_entry *entry) { return entry->key == deleted_key; } static int -entry_is_present(struct hash_entry *entry) +entry_is_present(const struct hash_entry *entry) { return entry->key != NULL && entry->key != deleted_key; } @@ -84,19 +84,19 @@ static const struct { }; static int -entry_is_free(struct set_entry *entry) +entry_is_free(const struct set_entry *entry) { return entry->key == NULL; } static int -entry_is_deleted(struct set_entry *entry) +entry_is_deleted(const struct set_entry *entry) { return entry->key == deleted_key; } static int -entry_is_present(struct set_entry *entry) +entry_is_present(const struct set_entry *entry) { return entry->key != NULL && entry->key != deleted_key; } |