[dbus PATCH 1/2] Initialize struct using 0 instead of NULL

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

 



Signed-off-by: Pavel Hrdina <phrdina@xxxxxxxxxx>
---
 src/connect.c | 4 ++--
 src/domain.c  | 4 ++--
 src/gdbus.c   | 4 ++--
 src/main.c    | 2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/connect.c b/src/connect.c
index 56ead8d..c6b85ce 100644
--- a/src/connect.c
+++ b/src/connect.c
@@ -281,7 +281,7 @@ virtDBusDomainLookupByUUID(GVariant *inArgs,
 
 static virtDBusGDBusPropertyTable virtDBusConnectPropertyTable[] = {
     { "Version", virtDBusConnectGetVersion, NULL },
-    { NULL, NULL, NULL }
+    { 0 }
 };
 
 static virtDBusGDBusMethodTable virtDBusConnectMethodTable[] = {
@@ -291,7 +291,7 @@ static virtDBusGDBusMethodTable virtDBusConnectMethodTable[] = {
     { "DomainLookupByID", virtDBusDomainLookupByID },
     { "DomainLookupByName", virtDBusDomainLookupByName },
     { "DomainLookupByUUID", virtDBusDomainLookupByUUID },
-    { NULL, NULL }
+    { 0 }
 };
 
 static GDBusInterfaceInfo *interfaceInfo = NULL;
diff --git a/src/domain.c b/src/domain.c
index 3c09351..1b9c685 100644
--- a/src/domain.c
+++ b/src/domain.c
@@ -459,7 +459,7 @@ static virtDBusGDBusPropertyTable virtDBusDomainPropertyTable[] = {
     { "Persistent", virtDBusDomainGetPersistent, NULL },
     { "State", virtDBusDomainGetState, NULL },
     { "Autostart", virtDBusDomainGetAutostart, NULL },
-    { NULL, NULL, NULL }
+    { 0 }
 };
 
 static virtDBusGDBusMethodTable virtDBusDomainMethodTable[] = {
@@ -472,7 +472,7 @@ static virtDBusGDBusMethodTable virtDBusDomainMethodTable[] = {
     { "Reset", virtDBusDomainReset },
     { "Create", virtDBusDomainCreate },
     { "Undefine", virtDBusDomainUndefine },
-    { NULL, NULL }
+    { 0 }
 };
 
 static gchar **
diff --git a/src/gdbus.c b/src/gdbus.c
index 6abcc28..cb06813 100644
--- a/src/gdbus.c
+++ b/src/gdbus.c
@@ -294,7 +294,7 @@ static const GDBusInterfaceVTable virtDBusGDBusVtable = {
     virtDBusGDBusHandleMethodCall,
     NULL,
     NULL,
-    { NULL }
+    { 0 }
 };
 
 /**
@@ -378,7 +378,7 @@ static const GDBusSubtreeVTable virtDBusGDBusSubreeVtable = {
     virtDBusGDBusEnumerate,
     virtDBusGDBusIntrospect,
     virtDBusGDBusDispatch,
-    { NULL }
+    { 0 }
 };
 
 static void
diff --git a/src/main.c b/src/main.c
index 7afde4f..b3baf76 100644
--- a/src/main.c
+++ b/src/main.c
@@ -113,7 +113,7 @@ main(gint argc, gchar *argv[])
             "Connect to the session bus", NULL },
         { "threads", 't', 0, G_OPTION_ARG_INT, &maxThreads,
             "Configure maximal number of worker threads", "N" },
-        { NULL }
+        { 0 }
     };
 
     context = g_option_context_new("Provide a D-Bus interface to a libvirtd.");
-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux