diff options
author | Jeremy Jackson <jerj@coplanar.net> | 2009-01-21 20:51:57 -0500 |
---|---|---|
committer | Paul Jakma <paul@quagga.net> | 2009-06-19 15:03:31 +0100 |
commit | ec5e42b3c50e3a8e95963161319fa1a56466b2ae (patch) | |
tree | 4eba2580aca51f386ce2f879f32f8616279a1ba3 /zebra | |
parent | e84999d93afd0f727f7325431c055cc26c988c68 (diff) |
[cleanup] convert bzero() deprecated by POSIX to memset()
autoscan 2.62 complains about bzero(), so a good fix
nowadays is to just replace it.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/irdp_interface.c | 2 | ||||
-rw-r--r-- | zebra/irdp_packet.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/zebra/irdp_interface.c b/zebra/irdp_interface.c index b3a838b3..d982c23c 100644 --- a/zebra/irdp_interface.c +++ b/zebra/irdp_interface.c @@ -101,7 +101,7 @@ if_group (struct interface *ifp, zi = ifp->info; - bzero (&m, sizeof (m)); + memset (&m, 0, sizeof (m)); m.imr_multiaddr.s_addr = htonl (group); p = irdp_get_prefix(ifp); diff --git a/zebra/irdp_packet.c b/zebra/irdp_packet.c index 3c5f1559..60038372 100644 --- a/zebra/irdp_packet.c +++ b/zebra/irdp_packet.c @@ -332,7 +332,7 @@ send_packet(struct interface *ifp, zlog_warn("sendto %s", safe_strerror (errno)); } - bzero(&sockdst,sizeof(sockdst)); + memset(&sockdst,0,sizeof(sockdst)); sockdst.sin_family=AF_INET; sockdst.sin_addr.s_addr = dst; |