From 88e2cb66b87fc0ce5778c301246f867789811b63 Mon Sep 17 00:00:00 2001 From: Isaac Dunham Date: Sun, 14 Apr 2013 02:58:12 -0500 Subject: ifconfig uses __caddr_t in one location; this is not guaranteed to work everywhere. It does not compile OOB on musl, so I changed it to the portable equivalent, char *. This compiles on musl, and should compile anywhere. --- toys/pending/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/ifconfig.c b/toys/pending/ifconfig.c index d5aa21e9..605275de 100644 --- a/toys/pending/ifconfig.c +++ b/toys/pending/ifconfig.c @@ -603,7 +603,7 @@ static void set_data(int sockfd, struct ifreq *ifre, char *kval, int request, ch unsigned long val = strtoul(kval, NULL, 0); char *ptr; ptr = ((char *) ifre) + offsetof(struct ifreq, ifr_data); - (*(__caddr_t *)ptr) = (__caddr_t)val; + (*(char * *)ptr) = (char *)val; if(ioctl(sockfd, request, ifre) < 0) { perror_exit((char *)req_name); -- cgit v1.2.3