Can't store a pointer in an int on 64 bit platforms.

This commit is contained in:
Rob Landley 2005-11-22 17:09:14 +00:00
parent b4c823211d
commit c819ca98ee

View File

@ -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