From c819ca98eed7432bea9200390703663151033c60 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 22 Nov 2005 17:09:14 +0000 Subject: Can't store a pointer in an int on 64 bit platforms. --- networking/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/networking/ifconfig.c b/networking/ifconfig.c index eddf052..1e1bd83 100644 --- a/networking/ifconfig.c +++ b/networking/ifconfig.c @@ -480,7 +480,7 @@ int ifconfig_main(int argc, char **argv) memcpy((((char *) (&ifr)) + a1op->ifr_offset), p, sizeof(struct sockaddr)); } else { - unsigned int i = strtoul(*argv, NULL, 0); + unsigned long i = strtoul(*argv, NULL, 0); p = ((char *) (&ifr)) + a1op->ifr_offset; #ifdef CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ -- cgit v1.1