aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index f2cf3f583f62..ebc4a9a4b1f7 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -216,7 +216,7 @@ static int unix_mkname(struct sockaddr_un *sunaddr, int len, unsigned *hashp)
216 return len; 216 return len;
217 } 217 }
218 218
219 *hashp = unix_hash_fold(csum_partial((char *)sunaddr, len, 0)); 219 *hashp = unix_hash_fold(csum_partial(sunaddr, len, 0));
220 return len; 220 return len;
221} 221}
222 222
@@ -686,7 +686,7 @@ static int unix_autobind(struct socket *sock)
686 686
687retry: 687retry:
688 addr->len = sprintf(addr->name->sun_path+1, "%05x", ordernum) + 1 + sizeof(short); 688 addr->len = sprintf(addr->name->sun_path+1, "%05x", ordernum) + 1 + sizeof(short);
689 addr->hash = unix_hash_fold(csum_partial((void *)addr->name, addr->len, 0)); 689 addr->hash = unix_hash_fold(csum_partial(addr->name, addr->len, 0));
690 690
691 spin_lock(&unix_table_lock); 691 spin_lock(&unix_table_lock);
692 ordernum = (ordernum+1)&0xFFFFF; 692 ordernum = (ordernum+1)&0xFFFFF;