summaryrefslogtreecommitdiff
path: root/usr.sbin/vmctl/main.c
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2017-10-07 19:48:31 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2017-10-07 19:48:31 +0000
commit34ce07416604f2dec184920f0c70e7d98de287a2 (patch)
tree5d84131042b8ff95a11d1704db3ee5325902d385 /usr.sbin/vmctl/main.c
parentbcec21e2649a4e2778feb4cddb5627e2be8c8d88 (diff)
Prefer memset() over bzero()
ok deraadt@ mlarkin@
Diffstat (limited to 'usr.sbin/vmctl/main.c')
-rw-r--r--usr.sbin/vmctl/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmctl/main.c b/usr.sbin/vmctl/main.c
index d2799829d62..91fac99b48c 100644
--- a/usr.sbin/vmctl/main.c
+++ b/usr.sbin/vmctl/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.32 2017/08/15 15:51:54 jasper Exp $ */
+/* $OpenBSD: main.c,v 1.33 2017/10/07 19:48:30 guenther Exp $ */
/*
* Copyright (c) 2015 Reyk Floeter <reyk@openbsd.org>
@@ -187,7 +187,7 @@ vmmaction(struct parse_result *res)
SOCK_STREAM|SOCK_CLOEXEC, 0)) == -1)
err(1, "socket");
- bzero(&sun, sizeof(sun));
+ memset(&sun, 0, sizeof(sun));
sun.sun_family = AF_UNIX;
strlcpy(sun.sun_path, socket_name, sizeof(sun.sun_path));