diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-08-17 15:15:27 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2022-08-17 15:15:27 +0000 |
commit | 4313c2e0bdd6d0e8985c8af74b526e148e694246 (patch) | |
tree | 4fea142550109d9877ee49638dc8c3aef88b8b8d /usr.sbin/bgpd/bgpd.c | |
parent | 70136115620fb5c5f2ef87c10a3456e8157bb62d (diff) |
Convert bzero() to memset(), bcmp() to memcmp() and bcopy() to memcpy().
The memory regions passed to memcpy() can not overlap so no need for memmove().
OK tb@ deraadt@
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 313c959f8b0..8632d76ebec 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.253 2022/07/28 13:11:48 deraadt Exp $ */ +/* $OpenBSD: bgpd.c,v 1.254 2022/08/17 15:15:25 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -321,7 +321,7 @@ BROKEN if (pledge("stdio rpath wpath cpath fattr unix route recvfd sendfd", pfd = newp; pfd_elms = PFD_CONNECT_START + connect_cnt; } - bzero(pfd, sizeof(struct pollfd) * pfd_elms); + memset(pfd, 0, sizeof(struct pollfd) * pfd_elms); timeout = mrt_timeout(conf->mrt); |