diff options
author | mestre <mestre@openbsd.org> | 2016-11-29 17:15:27 +0000 |
---|---|---|
committer | mestre <mestre@openbsd.org> | 2016-11-29 17:15:27 +0000 |
commit | 44aaf217be5e675dc085eab68e514185cd4e7409 (patch) | |
tree | 4de423eab2de8e3f68cd22c02b4bedec88d79aab /usr.sbin/ypldap/ypldap.c | |
parent | Copyright and license (diff) | |
download | wireguard-openbsd-44aaf217be5e675dc085eab68e514185cd4e7409.tar.xz wireguard-openbsd-44aaf217be5e675dc085eab68e514185cd4e7409.zip |
Use memset(3) instead of bzero(3)
OK deraadt@
Diffstat (limited to 'usr.sbin/ypldap/ypldap.c')
-rw-r--r-- | usr.sbin/ypldap/ypldap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ypldap/ypldap.c b/usr.sbin/ypldap/ypldap.c index 1da7da77e9f..c478532bf80 100644 --- a/usr.sbin/ypldap/ypldap.c +++ b/usr.sbin/ypldap/ypldap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ypldap.c,v 1.19 2016/04/28 22:28:36 schwarze Exp $ */ +/* $OpenBSD: ypldap.c,v 1.20 2016/11/29 17:15:27 mestre Exp $ */ /* * Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org> @@ -610,7 +610,7 @@ main(int argc, char *argv[]) if (pledge("stdio inet", NULL) == -1) fatal("pledge"); - bzero(&tv, sizeof(tv)); + memset(&tv, 0, sizeof(tv)); evtimer_set(&ev_timer, main_init_timer, &env); evtimer_add(&ev_timer, &tv); |