aboutsummaryrefslogtreecommitdiff
path: root/toys/pending/ifconfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/pending/ifconfig.c')
-rw-r--r--toys/pending/ifconfig.c2
1 files changed, 1 insertions, 1 deletions
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);