]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - security/selinux/ss/hashtab.c
Merge branch 'i2c-for-linus' of git://jdelvare.pck.nerim.net/jdelvare-2.6
[linux-2.6-omap-h63xx.git] / security / selinux / ss / hashtab.c
index 24e5ec957630a752c270d8583ac4a2b6f797d31b..2e7788e13213002832368b8febed33853c423cea 100644 (file)
@@ -8,9 +8,9 @@
 #include <linux/errno.h>
 #include "hashtab.h"
 
-struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, void *key),
-                               int (*keycmp)(struct hashtab *h, void *key1, void *key2),
-                               u32 size)
+struct hashtab *hashtab_create(u32 (*hash_value)(struct hashtab *h, const void *key),
+                              int (*keycmp)(struct hashtab *h, const void *key1, const void *key2),
+                              u32 size)
 {
        struct hashtab *p;
        u32 i;
@@ -71,7 +71,7 @@ int hashtab_insert(struct hashtab *h, void *key, void *datum)
        return 0;
 }
 
-void *hashtab_search(struct hashtab *h, void *key)
+void *hashtab_search(struct hashtab *h, const void *key)
 {
        u32 hvalue;
        struct hashtab_node *cur;