From fb123f93f9f5ce42c8e5785d2f8e0edaf951740e Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Wed, 26 Mar 2014 19:21:20 +0000 Subject: Imported from /home/lorry/working-area/delta_VirtualBox/VirtualBox-4.3.10.tar.bz2. --- src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/VBox/Main/src-server/freebsd/HostHardwareFreeBSD.cpp') 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 #include #include -#include /* for RTThreadSleep() */ #include #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; -- cgit v1.2.1