diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2013-12-26 17:25:33 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2013-12-26 17:25:33 +0000 |
commit | 3ff4a18b976016ce2fcf3acd1ea75cbdb8b4d62c (patch) | |
tree | 400d707a8f5595d7a0a27ce37c57e74e12c07c59 /usr.sbin/smtpd/control.c | |
parent | 346be754b26d1e4a0a5dd7eb10e6fd94d842e081 (diff) |
bcopy -> memmove
bzero -> memset
Diffstat (limited to 'usr.sbin/smtpd/control.c')
-rw-r--r-- | usr.sbin/smtpd/control.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/control.c b/usr.sbin/smtpd/control.c index 5ec9202da3c..8e95836584e 100644 --- a/usr.sbin/smtpd/control.c +++ b/usr.sbin/smtpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.93 2013/12/06 14:12:34 eric Exp $ */ +/* $OpenBSD: control.c,v 1.94 2013/12/26 17:25:32 eric Exp $ */ /* * Copyright (c) 2012 Gilles Chehade <gilles@poolp.org> @@ -193,7 +193,7 @@ control_create_socket(void) if ((fd = socket(AF_UNIX, SOCK_STREAM, 0)) == -1) fatal("control: socket"); - bzero(&sun, sizeof(sun)); + memset(&sun, 0, sizeof(sun)); sun.sun_family = AF_UNIX; if (strlcpy(sun.sun_path, SMTPD_SOCKET, sizeof(sun.sun_path)) >= sizeof(sun.sun_path)) @@ -275,7 +275,7 @@ control(void) tree_init(&ctl_conns); - bzero(&digest, sizeof digest); + memset(&digest, 0, sizeof digest); digest.startup = time(NULL); config_peer(PROC_SCHEDULER); |