summaryrefslogtreecommitdiff
path: root/lib/util
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2011-05-14 17:39:40 +0200
committerVolker Lendecke <vl@samba.org>2011-05-14 17:57:13 +0200
commit115d0ecf88a5cae2d684264f570892fb763d54d2 (patch)
treecf67c7f240e589ff0b8f04a2543f05e31bf29921 /lib/util
parentf1cdce6c135574bd0552f1e368c9b47daf633c73 (diff)
downloadsamba-115d0ecf88a5cae2d684264f570892fb763d54d2.tar.gz
samba-115d0ecf88a5cae2d684264f570892fb763d54d2.tar.bz2
samba-115d0ecf88a5cae2d684264f570892fb763d54d2.zip
Use ZERO_STRUCTP in util_net
Diffstat (limited to 'lib/util')
-rw-r--r--lib/util/util_net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util/util_net.c b/lib/util/util_net.c
index 7d678c9b14..98eef3bd8b 100644
--- a/lib/util/util_net.c
+++ b/lib/util/util_net.c
@@ -405,7 +405,7 @@ bool is_zero_addr(const struct sockaddr_storage *pss)
*/
void zero_ip_v4(struct in_addr *ip)
{
- memset(ip, '\0', sizeof(struct in_addr));
+ ZERO_STRUCTP(ip);
}
/**
@@ -415,7 +415,7 @@ void in_addr_to_sockaddr_storage(struct sockaddr_storage *ss,
struct in_addr ip)
{
struct sockaddr_in *sa = (struct sockaddr_in *)ss;
- memset(ss, '\0', sizeof(*ss));
+ ZERO_STRUCTP(ss);
sa->sin_family = AF_INET;
sa->sin_addr = ip;
}