git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge to kernel-2.6.20-1.2949.fc6.vs2.2.0.1
[linux-2.6.git]
/
security
/
selinux
/
ss
/
symtab.c
diff --git
a/security/selinux/ss/symtab.c
b/security/selinux/ss/symtab.c
index
24a10d3
..
837658a
100644
(file)
--- a/
security/selinux/ss/symtab.c
+++ b/
security/selinux/ss/symtab.c
@@
-9,9
+9,9
@@
#include <linux/errno.h>
#include "symtab.h"
#include <linux/errno.h>
#include "symtab.h"
-static unsigned int symhash(struct hashtab *h, void *key)
+static unsigned int symhash(struct hashtab *h,
const
void *key)
{
{
- char *p, *keyp;
+ c
onst c
har *p, *keyp;
unsigned int size;
unsigned int val;
unsigned int size;
unsigned int val;
@@
-23,9
+23,9
@@
static unsigned int symhash(struct hashtab *h, void *key)
return val & (h->size - 1);
}
return val & (h->size - 1);
}
-static int symcmp(struct hashtab *h,
void *key1,
void *key2)
+static int symcmp(struct hashtab *h,
const void *key1, const
void *key2)
{
{
- char *keyp1, *keyp2;
+ c
onst c
har *keyp1, *keyp2;
keyp1 = key1;
keyp2 = key2;
keyp1 = key1;
keyp2 = key2;