git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b4fd35
)
nss_wins: Fix a type-punned warning
author
Volker Lendecke
<vl@samba.org>
Sat, 1 Jan 2011 14:08:42 +0000
(15:08 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 1 Jan 2011 14:16:38 +0000
(15:16 +0100)
nsswitch/wins.c
patch
|
blob
|
history
diff --git
a/nsswitch/wins.c
b/nsswitch/wins.c
index ac062fe311977ad9c79a360c7306642d70cc53e1..6e3c84b6087abf1271d0f84922ea77926b26440c 100644
(file)
--- a/
nsswitch/wins.c
+++ b/
nsswitch/wins.c
@@
-125,7
+125,8
@@
static struct in_addr *lookup_byname_backend(const char *name, int *count)
free(ret);
return NULL;
}
- *ret = ((struct sockaddr_in *)&address[0].ss)->sin_addr;
+ *ret = ((struct sockaddr_in *)(void *)&address[0].ss)
+ ->sin_addr;
free( address );
return ret;
}