[libvirt] [PATCH] util: Fix virCgroupNewMachine ATTRIBUTE_NONNULL args

John Ferlan jferlan at redhat.com
Sat Feb 6 11:50:18 UTC 2016


Commit id 'c3bd0019c0' removed arg3, but forgot to adjust the numbers
for NONNULL - caused build failure for coverity

Signed-off-by: John Ferlan <jferlan at redhat.com>
---

Pushed as build breaker

 src/util/vircgroup.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
index bec88dc..46d3ace 100644
--- a/src/util/vircgroup.h
+++ b/src/util/vircgroup.h
@@ -110,7 +110,7 @@ int virCgroupNewMachine(const char *name,
                         int controllers,
                         virCgroupPtr *group)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2)
-    ATTRIBUTE_NONNULL(4);
+    ATTRIBUTE_NONNULL(3);
 
 int virCgroupTerminateMachine(const char *name)
     ATTRIBUTE_NONNULL(1);
-- 
2.5.0




More information about the libvir-list mailing list