diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:14:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:29 -0400 |
commit | eee3754f5e45bd27e001ea41823bdbcdd0d192d4 (patch) | |
tree | 2e8d4d184842fd0fb93b27e1faccede453544c45 /fs/ncpfs/ncpsign_kernel.c | |
parent | 305787e44ebc21d87ab4d4949da5b97d4252aa9b (diff) |
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: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: Petr Vandrovec <VANDROVE@vc.cvut.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/ncpfs/ncpsign_kernel.c')
-rw-r--r-- | fs/ncpfs/ncpsign_kernel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ncpfs/ncpsign_kernel.c b/fs/ncpfs/ncpsign_kernel.c index 749a18d33599..7c0b5c21e6cf 100644 --- a/fs/ncpfs/ncpsign_kernel.c +++ b/fs/ncpfs/ncpsign_kernel.c | |||
@@ -55,7 +55,7 @@ static void nwsign(char *r_data1, char *r_data2, char *outdata) { | |||
55 | unsigned int w0,w1,w2,w3; | 55 | unsigned int w0,w1,w2,w3; |
56 | static int rbit[4]={0, 2, 1, 3}; | 56 | static int rbit[4]={0, 2, 1, 3}; |
57 | #ifdef __i386__ | 57 | #ifdef __i386__ |
58 | unsigned int *data2=(int *)r_data2; | 58 | unsigned int *data2=(unsigned int *)r_data2; |
59 | #else | 59 | #else |
60 | unsigned int data2[16]; | 60 | unsigned int data2[16]; |
61 | for (i=0;i<16;i++) | 61 | for (i=0;i<16;i++) |