[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Use empty brace initializers



From: Paul Durrant <pdurrant@xxxxxxxxxx>

This avoids a build warning with EWDK_co_release_svc_prod3_22000_220715-1440

Signed-off-by: Paul Durrant <pdurrant@xxxxxxxxxx>
---
 src/xenagent/xenifacedevice.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/xenagent/xenifacedevice.cpp b/src/xenagent/xenifacedevice.cpp
index 46b4b6f2143b..69a584bb1777 100644
--- a/src/xenagent/xenifacedevice.cpp
+++ b/src/xenagent/xenifacedevice.cpp
@@ -104,7 +104,7 @@ bool CXenIfaceDevice::StoreRemove(const std::string& path)
 bool CXenIfaceDevice::StoreAddWatch(const std::string& path, HANDLE evt, 
void** ctxt)
 {
     XENIFACE_STORE_ADD_WATCH_IN  in  = { (PCHAR)path.c_str(), 
(DWORD)path.length() + 1, evt };
-    XENIFACE_STORE_ADD_WATCH_OUT out = { NULL };
+    XENIFACE_STORE_ADD_WATCH_OUT out = { };
     if (!Ioctl(IOCTL_XENIFACE_STORE_ADD_WATCH,
                &in, (DWORD)sizeof(in),
                &out, (DWORD)sizeof(out)))
@@ -125,7 +125,7 @@ bool CXenIfaceDevice::StoreRemoveWatch(void* ctxt)
 bool CXenIfaceDevice::SuspendRegister(HANDLE evt, void** ctxt)
 {
     XENIFACE_SUSPEND_REGISTER_IN  in  = { evt };
-    XENIFACE_SUSPEND_REGISTER_OUT out = { NULL };
+    XENIFACE_SUSPEND_REGISTER_OUT out = { };
     if (!Ioctl(IOCTL_XENIFACE_SUSPEND_REGISTER,
                &in, (DWORD)sizeof(in),
                &out, (DWORD)sizeof(out)))
@@ -156,7 +156,7 @@ bool CXenIfaceDevice::SuspendGetCount(DWORD *count)
 // sharedinfo interface
 bool CXenIfaceDevice::SharedInfoGetTime(FILETIME* time, bool* local)
 {
-    XENIFACE_SHAREDINFO_GET_TIME_OUT out = { NULL };
+    XENIFACE_SHAREDINFO_GET_TIME_OUT out = { };
     if (!Ioctl(IOCTL_XENIFACE_SHAREDINFO_GET_TIME,
                NULL, 0,
                &out, sizeof(out)))
-- 
2.25.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.