summaryrefslogtreecommitdiff
path: root/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2014-03-26 19:21:20 +0000
committer <>2014-05-08 15:03:54 +0000
commitfb123f93f9f5ce42c8e5785d2f8e0edaf951740e (patch)
treec2103d76aec5f1f10892cd1d3a38e24f665ae5db /src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
parent58ed4748338f9466599adfc8a9171280ed99e23f (diff)
downloadVirtualBox-master.tar.gz
Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2.HEADVirtualBox-4.3.10master
Diffstat (limited to 'src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp')
-rw-r--r--src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp b/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
index b654f5a6..c65e47c3 100644
--- a/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
+++ b/src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp
@@ -4,7 +4,7 @@
*/
/*
- * Copyright (C) 2008 Oracle Corporation
+ * Copyright (C) 2008-2013 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
@@ -31,7 +31,6 @@
#include <iprt/mem.h>
#include <iprt/param.h>
#include <iprt/path.h>
-#include <iprt/thread.h> /* for RTThreadSleep() */
#include <iprt/string.h>
#ifdef RT_OS_FREEBSD
@@ -172,8 +171,8 @@ static int getDVDInfoFromCAM(DriveInfoList *pList, bool *pfSuccess)
struct dev_match_pattern DeviceMatchPattern;
struct dev_match_result *paMatches = NULL;
- memset(&DeviceCCB, 0, sizeof(union ccb));
- memset(&DeviceMatchPattern, 0, sizeof(struct device_match_pattern));
+ RT_ZERO(DeviceCCB);
+ RT_ZERO(DeviceMatchPattern);
/* We want to get all devices. */
DeviceCCB.ccb_h.func_code = XPT_DEV_MATCH;
@@ -236,9 +235,9 @@ static int getDVDInfoFromCAM(DriveInfoList *pList, bool *pfSuccess)
struct periph_match_result *pPeriphResult = NULL;
unsigned iPeriphMatch = 0;
- memset(&PeriphCCB, 0, sizeof(union ccb));
- memset(&PeriphMatchPattern, 0, sizeof(struct dev_match_pattern));
- memset(aPeriphMatches, 0, sizeof(aPeriphMatches));
+ RT_ZERO(PeriphCCB);
+ RT_ZERO(PeriphMatchPattern);
+ RT_ZERO(aPeriphMatches);
/* This time we only want the specific nodes for the device. */
PeriphCCB.ccb_h.func_code = XPT_DEV_MATCH;