From 592e3a3f1832336d38802c6bfd328682c9e9dfcb Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 31 Dec 2009 19:51:31 +0000 Subject: 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 --- lib/interface.c | 6 +++--- 1 file 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 -- cgit v1.2.3-65-gdbad