diff options
Diffstat (limited to 'src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp')
-rw-r--r-- | src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp | 13 |
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; |