summaryrefslogtreecommitdiff
path: root/net/core/dev.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@nuts.ninka.net>2002-05-22 08:46:09 -0700
committerDavid S. Miller <davem@nuts.ninka.net>2002-05-22 08:46:09 -0700
commitdf59c450209cce8967f85a6b962cec8ac25c4f73 (patch)
tree37f0907c32c223eb01c8734b060cced04867a890 /net/core/dev.c
parent8a9fd6e0a0e1c2702cc6f67633b85f91160ad78c (diff)
net/core/dev.c: Do not cast pointers to int, use long.
Diffstat (limited to 'net/core/dev.c')
-rw-r--r--net/core/dev.c2
1 files changed, 1 insertions, 1 deletions
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);
}