diff options
author | 2009-12-31 19:51:31 +0000 | |
---|---|---|
committer | 2009-12-31 19:51:31 +0000 | |
commit | 592e3a3f1832336d38802c6bfd328682c9e9dfcb (patch) | |
tree | 2bf0222194a55b6e9b58cb6aef6c7cfcf6f84a9b | |
parent | ignore patch related files (diff) | |
download | net-tools-592e3a3f1832336d38802c6bfd328682c9e9dfcb.tar.gz net-tools-592e3a3f1832336d38802c6bfd328682c9e9dfcb.tar.bz2 net-tools-592e3a3f1832336d38802c6bfd328682c9e9dfcb.zip |
interface slip: cast keepalive/outfill to unsigned long to fix warnings on 64bit hosts -- no functional changes since these only have an 8bit range anyways
-rw-r--r-- | lib/interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/interface.c b/lib/interface.c index d08ee55..8bba5a2 100644 --- a/lib/interface.c +++ b/lib/interface.c @@ -7,7 +7,7 @@ 8/2000 Andi Kleen make the list operations a bit more efficient. People are crazy enough to use thousands of aliases now. - $Id: interface.c,v 1.32 2009/09/06 23:01:16 vapier Exp $ + $Id: interface.c,v 1.33 2009/12/31 19:51:31 vapier Exp $ */ #include "config.h" @@ -446,14 +446,14 @@ int if_fetch(struct interface *ife) if (ioctl(skfd, SIOCGOUTFILL, &ifr) < 0) ife->outfill = 0; else - ife->outfill = (unsigned int) ifr.ifr_data; + ife->outfill = (unsigned long) ifr.ifr_data; #endif #ifdef SIOCGKEEPALIVE strcpy(ifr.ifr_name, ifname); if (ioctl(skfd, SIOCGKEEPALIVE, &ifr) < 0) ife->keepalive = 0; else - ife->keepalive = (unsigned int) ifr.ifr_data; + ife->keepalive = (unsigned long) ifr.ifr_data; #endif } #endif |