diff options
author | paul <paul> | 2003-10-22 02:41:52 +0000 |
---|---|---|
committer | paul <paul> | 2003-10-22 02:41:52 +0000 |
commit | d1724b6555510c22d2df55a9245fe4e6f1b08922 (patch) | |
tree | 3c72ac425f323f94fe57f8310011fc1f8c9273b5 /zebra | |
parent | dc7a2bf1c831f6bcea5945f7fe2eb2ba111e4224 (diff) |
2003-10-22 Paul Jakma <paul@dishone.st>
* lib/regex.c: bzero -> memset
* zebra/ioctl.c: ditto. bzero is not portable.
Diffstat (limited to 'zebra')
-rw-r--r-- | zebra/ioctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/zebra/ioctl.c b/zebra/ioctl.c index 1a682e27..ff253be1 100644 --- a/zebra/ioctl.c +++ b/zebra/ioctl.c @@ -364,7 +364,7 @@ if_set_flags (struct interface *ifp, unsigned long flags) int ret; struct ifreq ifreq; - bzero(&ifreq, sizeof(struct ifreq)); + memset (&ifreq, 0, sizeof(struct ifreq)); ifreq_set_name (&ifreq, ifp); ifreq.ifr_flags = ifp->flags; @@ -387,7 +387,7 @@ if_unset_flags (struct interface *ifp, unsigned long flags) int ret; struct ifreq ifreq; - bzero(&ifreq, sizeof(struct ifreq)); + memset (&ifreq, 0, sizeof(struct ifreq)); ifreq_set_name (&ifreq, ifp); ifreq.ifr_flags = ifp->flags; |