diff options
| author | 2016-01-04 02:07:28 +0000 | |
|---|---|---|
| committer | 2016-01-04 02:07:28 +0000 | |
| commit | cb0fa87c00f13bfe7362a66e44907bc1f8b7f04c (patch) | |
| tree | 62b2a132e4d0b931cb510140c3fd2606fc0bfadf /usr.sbin/vmd/pci.c | |
| parent | Calling clone(2) with CLONE_NEWPID yields multiple processes with pid=1. (diff) | |
| download | wireguard-openbsd-cb0fa87c00f13bfe7362a66e44907bc1f8b7f04c.tar.xz wireguard-openbsd-cb0fa87c00f13bfe7362a66e44907bc1f8b7f04c.zip | |
bzero -> memset for consistency
Diffstat (limited to 'usr.sbin/vmd/pci.c')
| -rw-r--r-- | usr.sbin/vmd/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/vmd/pci.c b/usr.sbin/vmd/pci.c index 613d7574d68..e1f76bd8a14 100644 --- a/usr.sbin/vmd/pci.c +++ b/usr.sbin/vmd/pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci.c,v 1.4 2015/12/03 08:42:11 reyk Exp $ */ +/* $OpenBSD: pci.c,v 1.5 2016/01/04 02:07:28 mlarkin Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -170,7 +170,7 @@ pci_init(void) { uint8_t id; - bzero(&pci, sizeof(pci)); + memset(&pci, 0, sizeof(pci)); pci.pci_next_mmio_bar = VMM_PCI_MMIO_BAR_BASE; pci.pci_next_io_bar = VMM_PCI_IO_BAR_BASE; |
