summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-03-17 17:49:54 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-03-17 17:49:54 +0000
commitdba0b8b3079550b1215eebbba61c1c712662d174 (patch)
tree649e63af8837aa0189461e663ba433d2cc72f64d /usr.sbin
parent4178fafc54052e6ef54592de97c1a70cc89a3256 (diff)
consistency
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/bgpd/config.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/config.c b/usr.sbin/bgpd/config.c
index c209db7e2bf..4a2c231642a 100644
--- a/usr.sbin/bgpd/config.c
+++ b/usr.sbin/bgpd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.32 2004/03/16 18:35:30 henning Exp $ */
+/* $OpenBSD: config.c,v 1.33 2004/03/17 17:49:53 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -171,7 +171,7 @@ host_v4(const char *s, struct bgpd_addr *h, u_int8_t *len)
struct in_addr ina;
int bits = 32;
- memset(&ina, 0, sizeof(struct in_addr));
+ bzero(&ina, sizeof(struct in_addr));
if (strrchr(s, '/') != NULL) {
if ((bits = inet_net_pton(AF_INET, s, &ina, sizeof(ina))) == -1)
return (0);
@@ -192,7 +192,7 @@ host_v6(const char *s, struct bgpd_addr *h)
{
struct addrinfo hints, *res;
- memset(&hints, 0, sizeof(hints));
+ bzero(&hints, sizeof(hints));
hints.ai_family = AF_INET6;
hints.ai_socktype = SOCK_DGRAM; /*dummy*/
hints.ai_flags = AI_NUMERICHOST;