From df59c450209cce8967f85a6b962cec8ac25c4f73 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Wed, 22 May 2002 08:46:09 -0700 Subject: net/core/dev.c: Do not cast pointers to int, use long. --- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'net/core/dev.c') diff --git a/net/core/dev.c b/net/core/dev.c index 94c133556765..aa60a342c5fc 100644 --- a/net/core/dev.c +++ b/net/core/dev.c @@ -244,7 +244,7 @@ void dev_add_pack(struct packet_type *pt) #ifdef CONFIG_NET_FASTROUTE /* Hack to detect packet socket */ - if (pt->data && (int)(pt->data) != 1) { + if (pt->data && (long)(pt->data) != 1) { netdev_fastroute_obstacles++; dev_clear_fastroute(pt->dev); } -- cgit v1.2.3