]> xenbits.xensource.com Git - libvirt.git/commitdiff
util: Fix virCgroupNewMachine ATTRIBUTE_NONNULL args
authorJohn Ferlan <jferlan@redhat.com>
Sat, 6 Feb 2016 11:45:46 +0000 (06:45 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 6 Feb 2016 11:45:46 +0000 (06:45 -0500)
Commit id 'c3bd0019c0' removed arg3, but forgot to adjust the numbers
for NONNULL - caused build failure for coverity

src/util/vircgroup.h

index bec88dc84e72ad7b90771e00be13a7d66806c0b2..46d3acee09c0be39e9ba6bab2c8f46f49d73c17c 100644 (file)
@@ -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);