Commit eee3754f authored by Harvey Harrison's avatar Harvey Harrison Committed by Linus Torvalds

ncpfs: fix sparse warning in ncpsign_kernel.c

We're casting anyway, might as well cast to the correct sign.
Specific to i386 (ifdef __i386__)

fs/ncpfs/ncpsign_kernel.c:58:23: warning: incorrect type in initializer (different signedness)
fs/ncpfs/ncpsign_kernel.c:58:23:    expected unsigned int *data2
fs/ncpfs/ncpsign_kernel.c:58:23:    got int *<noident>
Signed-off-by: default avatarHarvey Harrison <harvey.harrison@gmail.com>
Acked-by: default avatarPetr Vandrovec <VANDROVE@vc.cvut.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 305787e4
...@@ -55,7 +55,7 @@ static void nwsign(char *r_data1, char *r_data2, char *outdata) { ...@@ -55,7 +55,7 @@ static void nwsign(char *r_data1, char *r_data2, char *outdata) {
unsigned int w0,w1,w2,w3; unsigned int w0,w1,w2,w3;
static int rbit[4]={0, 2, 1, 3}; static int rbit[4]={0, 2, 1, 3};
#ifdef __i386__ #ifdef __i386__
unsigned int *data2=(int *)r_data2; unsigned int *data2=(unsigned int *)r_data2;
#else #else
unsigned int data2[16]; unsigned int data2[16];
for (i=0;i<16;i++) for (i=0;i<16;i++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment