Code

Try if this fixes the build on RHEL{5,6}
[collectd.git] / src / virt.c
index bbf5afc79bbac7a6c2db3605d75174ea07b6797d..16bb77b101505cdd592977736248be540148cf1d 100644 (file)
@@ -587,7 +587,7 @@ lv_read (void)
             continue;
         }
 
-        status =  virDomainMemoryStats (domains[i], minfo, VIR_DOMAIN_MEMORY_STAT_NR, 0);
+        status = virDomainMemoryStats (domains[i], minfo, VIR_DOMAIN_MEMORY_STAT_NR, 0);
 
         if (status < 0) {
             ERROR ("virt plugin: virDomainMemoryStats failed with status %i.",
@@ -687,7 +687,7 @@ refresh_lists (void)
 
         /* Get list of domains. */
         domids = malloc (sizeof (*domids) * n);
-        if (domids == 0) {
+        if (domids == NULL) {
             ERROR (PLUGIN_NAME " plugin: malloc failed.");
             return -1;
         }