OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
18993e2
)
ifconfig uses __caddr_t in one location; this is not guaranteed to work everywhere...
author
Isaac Dunham
<idunham@lavabit.com>
Sun, 14 Apr 2013 07:58:12 +0000
(
02:58
-0500)
committer
Isaac Dunham
<idunham@lavabit.com>
Sun, 14 Apr 2013 07:58:12 +0000
(
02:58
-0500)
toys/pending/ifconfig.c
patch
|
blob
|
history
diff --git
a/toys/pending/ifconfig.c
b/toys/pending/ifconfig.c
index
d5aa21e
..
605275d
100644
(file)
--- 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);