Skip to contentSkip to conversation

isdn: fix gcc data type/size warning

PATCH New Randy.Dunlap 1 participant 1 message Mar 3, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 isdn: fix gcc data type/size warning

(resend)

Fix gcc warning:
drivers/isdn/i4l/isdn_ppp.c:1581: warning: large integer implicitly truncated to unsigned type <seq> is unsigned int.

diffstat:=

 drivers/isdn/i4l/isdn_ppp.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)
drivers/isdn/i4l/isdn_ppp.c renamed from drivers/isdn/i4l/isdn_ppp.c~isdn_types +1 -1
diff -Naurp ./drivers/isdn/i4l/isdn_ppp.c~isdn_types ./drivers/isdn/i4l/isdn_ppp.c
@@ -1578,7 +1578,7 @@ static int isdn_ppp_mp_init( isdn_net_lo
 		lp->next = lp->last = lp;	/* nobody else in a queue */
 		lp->netdev->pb->frags = NULL;
 		lp->netdev->pb->frames = 0;
-		lp->netdev->pb->seq = LONG_MAX;
+		lp->netdev->pb->seq = UINT_MAX;
 	}
 	lp->netdev->pb->ref_ct++;
 	

---