mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
12 lines
287 B
Diff
12 lines
287 B
Diff
|
--- a/admswconfig.c
|
||
|
+++ b/admswconfig.c
|
||
|
@@ -68,7 +68,7 @@ int main(int argc, char **argv)
|
||
|
return 1;
|
||
|
}
|
||
|
strcpy(ifr.ifr_name, device);
|
||
|
- ifr.ifr_data = (caddr_t)&info;
|
||
|
+ ifr.ifr_data = (void *)&info;
|
||
|
if (ioctl(fd, SIOCGADMINFO, &ifr) < 0) {
|
||
|
perror("SIOCGADMINFO");
|
||
|
return 1;
|