summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley2005-11-22 17:09:14 +0000
committerRob Landley2005-11-22 17:09:14 +0000
commitc819ca98eed7432bea9200390703663151033c60 (patch)
tree48b6ac09582c20e238fcaae7d564210b5a87f3a2
parentb4c823211d7bc2e1b05e891e58a465f26ec05ff8 (diff)
downloadbusybox-c819ca98eed7432bea9200390703663151033c60.zip
busybox-c819ca98eed7432bea9200390703663151033c60.tar.gz
Can't store a pointer in an int on 64 bit platforms.
-rw-r--r--networking/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
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