Skip to content
Snippets Groups Projects
Commit 24a6ea1a authored by hauke's avatar hauke
Browse files

admswconfig: fix compile with musl


caddr_t is not defined everywhere any more, cast it the the real
pointer type of ifr_data.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46371 3c298f89-4303-0410-b956-a3cf2f4a3e73
parent e4b39f46
No related branches found
No related tags found
No related merge requests found
--- 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;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment