From 91ba27a76908da10f0f1eaa7897ef2ba2ee681ac Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Mon, 6 Jul 1998 19:54:39 +0000 Subject: [PATCH] ioctl() request args are unsigned longs, so don't attempt to store them as ints. Among other bugs, doing so at best caused benign overflow followed by fatal sign extension on machines with 32-bit ints and 64-bit longs. --- sbin/ifconfig/ifconfig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sbin/ifconfig/ifconfig.c b/sbin/ifconfig/ifconfig.c index bdf8e60358f6..a20dc9c6f83d 100644 --- a/sbin/ifconfig/ifconfig.c +++ b/sbin/ifconfig/ifconfig.c @@ -42,7 +42,7 @@ static const char copyright[] = static char sccsid[] = "@(#)ifconfig.c 8.2 (Berkeley) 2/16/94"; #endif static const char rcsid[] = - "$Id$"; + "$Id: ifconfig.c,v 1.36 1998/07/06 06:53:43 charnier Exp $"; #endif /* not lint */ #include @@ -219,8 +219,8 @@ struct afswtch { short af_af; af_status *af_status; af_getaddr *af_getaddr; - int af_difaddr; - int af_aifaddr; + u_long af_difaddr; + u_long af_aifaddr; caddr_t af_ridreq; caddr_t af_addreq; } afs[] = {