mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
Can't store a pointer in an int on 64 bit platforms.
This commit is contained in:
parent
b4c823211d
commit
c819ca98ee
@ -480,7 +480,7 @@ int ifconfig_main(int argc, char **argv)
|
|||||||
memcpy((((char *) (&ifr)) + a1op->ifr_offset),
|
memcpy((((char *) (&ifr)) + a1op->ifr_offset),
|
||||||
p, sizeof(struct sockaddr));
|
p, sizeof(struct sockaddr));
|
||||||
} else {
|
} else {
|
||||||
unsigned int i = strtoul(*argv, NULL, 0);
|
unsigned long i = strtoul(*argv, NULL, 0);
|
||||||
|
|
||||||
p = ((char *) (&ifr)) + a1op->ifr_offset;
|
p = ((char *) (&ifr)) + a1op->ifr_offset;
|
||||||
#ifdef CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
|
#ifdef CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ
|
||||||
|
Loading…
Reference in New Issue
Block a user