aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/hisax/hfc4s8s_l1.c
diff options
context:
space:
mode:
authorAlan Cox <alan@lxorguk.ukuu.org.uk>2006-10-03 04:13:55 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2006-10-03 11:03:41 -0400
commit17a4506d0eb1f78c9018c06a79e7dd09ae78c3a8 (patch)
tree6d0721b3570cc189300f3c7035d12cfa634183f5 /drivers/isdn/hisax/hfc4s8s_l1.c
parent31e7e1a806dab5e8e218b78e1b41887a4f6dfcc0 (diff)
[PATCH] ISDN warning fixes
Clean up warnings in drivers/isdn by using long not int for the values where we pass void * and cast to integer types. The code is ok (ok passing the stuff this way isn't pretty but the code is valid). In all the cases I checked out the right thing happens anyway but this removes all the warnings. Signed-off-by: Alan Cox <alan@redhat.com> Cc: Jeff Garzik <jeff@garzik.org> Acked-by: Karsten Keil <kkeil@suse.de> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/isdn/hisax/hfc4s8s_l1.c')
-rw-r--r--drivers/isdn/hisax/hfc4s8s_l1.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/isdn/hisax/hfc4s8s_l1.c b/drivers/isdn/hisax/hfc4s8s_l1.c
index 3a5ca8a68fc4..0ca5e66d2f5a 100644
--- a/drivers/isdn/hisax/hfc4s8s_l1.c
+++ b/drivers/isdn/hisax/hfc4s8s_l1.c
@@ -424,7 +424,7 @@ bch_l2l1(struct hisax_if *ifc, int pr, void *arg)
424 struct hfc4s8s_btype *bch = ifc->priv; 424 struct hfc4s8s_btype *bch = ifc->priv;
425 struct hfc4s8s_l1 *l1 = bch->l1p; 425 struct hfc4s8s_l1 *l1 = bch->l1p;
426 struct sk_buff *skb = (struct sk_buff *) arg; 426 struct sk_buff *skb = (struct sk_buff *) arg;
427 int mode = (int) arg; 427 long mode = (long) arg;
428 u_long flags; 428 u_long flags;
429 429
430 switch (pr) { 430 switch (pr) {
@@ -914,7 +914,7 @@ tx_d_frame(struct hfc4s8s_l1 *l1p)
914 struct sk_buff *skb; 914 struct sk_buff *skb;
915 u_char f1, f2; 915 u_char f1, f2;
916 u_char *cp; 916 u_char *cp;
917 int cnt; 917 long cnt;
918 918
919 if (l1p->l1_state != 7) 919 if (l1p->l1_state != 7)
920 return; 920 return;
@@ -980,7 +980,8 @@ tx_b_frame(struct hfc4s8s_btype *bch)
980 struct sk_buff *skb; 980 struct sk_buff *skb;
981 struct hfc4s8s_l1 *l1 = bch->l1p; 981 struct hfc4s8s_l1 *l1 = bch->l1p;
982 u_char *cp; 982 u_char *cp;
983 int cnt, max, hdlc_num, ack_len = 0; 983 int cnt, max, hdlc_num;
984 long ack_len = 0;
984 985
985 if (!l1->enabled || (bch->mode == L1_MODE_NULL)) 986 if (!l1->enabled || (bch->mode == L1_MODE_NULL))
986 return; 987 return;