diff options
author | Hannes Eder <hannes@hanneseder.net> | 2008-12-13 00:13:45 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-13 00:13:45 -0500 |
commit | dfa96ec1bb83641242c48883c2bae8f1f30483b2 (patch) | |
tree | be3599c900140ebf8ccf3d0b1d6adb22820b576a /drivers | |
parent | bcf91745091ba3b0813fa79afb5d10b090ea745d (diff) |
mISDN: consistently define 'debug' as '*u_int'
Impact: change data type for variable 'debug' from *int to *u_int,
same for the argument type of mISDN_inittimer
In "core.h" mISDN_inittimer is declared with the argument type "*u_int", make
the definition in "timerdev.c" match this.
This fixes also this warnings:
drivers/isdn/mISDN/layer1.c:391:8: warning: incorrect type in assignment (different signedness)
drivers/isdn/mISDN/layer1.c:391:8: expected int *static [toplevel] debug
drivers/isdn/mISDN/layer1.c:391:8: got unsigned int [usertype] *deb
drivers/isdn/mISDN/layer2.c:2200:8: warning: incorrect type in assignment (different signedness)
drivers/isdn/mISDN/layer2.c:2200:8: expected int *static [toplevel] debug
drivers/isdn/mISDN/layer2.c:2200:8: got unsigned int [usertype] *deb
drivers/isdn/mISDN/socket.c:769:8: warning: incorrect type in assignment (different signedness)
drivers/isdn/mISDN/socket.c:769:8: expected int *static [toplevel] debug
drivers/isdn/mISDN/socket.c:769:8: got unsigned int [usertype] *deb
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Acked-by: Karsten Keil <kkeil@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/mISDN/layer1.c | 2 | ||||
-rw-r--r-- | drivers/isdn/mISDN/layer2.c | 2 | ||||
-rw-r--r-- | drivers/isdn/mISDN/socket.c | 2 | ||||
-rw-r--r-- | drivers/isdn/mISDN/timerdev.c | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/drivers/isdn/mISDN/layer1.c b/drivers/isdn/mISDN/layer1.c index fced1a2755f8..4a55d6394e42 100644 --- a/drivers/isdn/mISDN/layer1.c +++ b/drivers/isdn/mISDN/layer1.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include "layer1.h" | 21 | #include "layer1.h" |
22 | #include "fsm.h" | 22 | #include "fsm.h" |
23 | 23 | ||
24 | static int *debug; | 24 | static u_int *debug; |
25 | 25 | ||
26 | struct layer1 { | 26 | struct layer1 { |
27 | u_long Flags; | 27 | u_long Flags; |
diff --git a/drivers/isdn/mISDN/layer2.c b/drivers/isdn/mISDN/layer2.c index a7915a156c04..77fca3b061de 100644 --- a/drivers/isdn/mISDN/layer2.c +++ b/drivers/isdn/mISDN/layer2.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include "fsm.h" | 18 | #include "fsm.h" |
19 | #include "layer2.h" | 19 | #include "layer2.h" |
20 | 20 | ||
21 | static int *debug; | 21 | static u_int *debug; |
22 | 22 | ||
23 | static | 23 | static |
24 | struct Fsm l2fsm = {NULL, 0, 0, NULL, NULL}; | 24 | struct Fsm l2fsm = {NULL, 0, 0, NULL, NULL}; |
diff --git a/drivers/isdn/mISDN/socket.c b/drivers/isdn/mISDN/socket.c index e5a20f9542d1..37a2de18cfd0 100644 --- a/drivers/isdn/mISDN/socket.c +++ b/drivers/isdn/mISDN/socket.c | |||
@@ -18,7 +18,7 @@ | |||
18 | #include <linux/mISDNif.h> | 18 | #include <linux/mISDNif.h> |
19 | #include "core.h" | 19 | #include "core.h" |
20 | 20 | ||
21 | static int *debug; | 21 | static u_int *debug; |
22 | 22 | ||
23 | static struct proto mISDN_proto = { | 23 | static struct proto mISDN_proto = { |
24 | .name = "misdn", | 24 | .name = "misdn", |
diff --git a/drivers/isdn/mISDN/timerdev.c b/drivers/isdn/mISDN/timerdev.c index 875fabe16e36..a8d1d9fb89e2 100644 --- a/drivers/isdn/mISDN/timerdev.c +++ b/drivers/isdn/mISDN/timerdev.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <linux/module.h> | 24 | #include <linux/module.h> |
25 | #include <linux/mISDNif.h> | 25 | #include <linux/mISDNif.h> |
26 | 26 | ||
27 | static int *debug; | 27 | static u_int *debug; |
28 | 28 | ||
29 | 29 | ||
30 | struct mISDNtimerdev { | 30 | struct mISDNtimerdev { |
@@ -274,7 +274,7 @@ static struct miscdevice mISDNtimer = { | |||
274 | }; | 274 | }; |
275 | 275 | ||
276 | int | 276 | int |
277 | mISDN_inittimer(int *deb) | 277 | mISDN_inittimer(u_int *deb) |
278 | { | 278 | { |
279 | int err; | 279 | int err; |
280 | 280 | ||