diff --git a/src/vbox/vbox_network.c b/src/vbox/vbox_network.c index 747253713f9dc26c655b9ddd562cdfdd52d8b798..a6079b4561cd4b565f2e97d356473ce07cb7033f 100644 --- a/src/vbox/vbox_network.c +++ b/src/vbox/vbox_network.c @@ -102,17 +102,17 @@ vboxNetworkOpen(virConnectPtr conn, goto cleanup; VIR_DEBUG("network initialized"); - /* conn->networkPrivateData = some network specific data */ + return VIR_DRV_OPEN_SUCCESS; cleanup: return VIR_DRV_OPEN_DECLINED; } -static int vboxNetworkClose(virConnectPtr conn) +static int vboxNetworkClose(virConnectPtr conn ATTRIBUTE_UNUSED) { VIR_DEBUG("network uninitialized"); - conn->networkPrivateData = NULL; + return 0; } diff --git a/src/vbox/vbox_storage.c b/src/vbox/vbox_storage.c index 194484cdd7725592cd7b1d2a9ebd2af8a446e822..3af5f940f5f55c842f1618a40c10216f4073a59c 100644 --- a/src/vbox/vbox_storage.c +++ b/src/vbox/vbox_storage.c @@ -58,14 +58,14 @@ vboxStorageOpen(virConnectPtr conn, return VIR_DRV_OPEN_ERROR; VIR_DEBUG("vbox storage initialized"); - /* conn->storagePrivateData = some storage specific data */ + return VIR_DRV_OPEN_SUCCESS; } -static int vboxStorageClose(virConnectPtr conn) +static int vboxStorageClose(virConnectPtr conn ATTRIBUTE_UNUSED) { VIR_DEBUG("vbox storage uninitialized"); - conn->storagePrivateData = NULL; + return 0; }