]> xenbits.xensource.com Git - libvirt.git/commitdiff
rpc: Fix build error for virNetServerNew ATTRIBUTE_NONNULL values
authorJohn Ferlan <jferlan@redhat.com>
Sun, 30 Jun 2019 13:56:53 +0000 (09:56 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 1 Jul 2019 15:39:30 +0000 (11:39 -0400)
Commit 5a148ce84 altered the virNetServerNew to remove a parameter
but neglected to update the ATTRIBUTE_NONNULL's which causes a build
failure for when checking is enabled such as when lv_cv_static_analysis
is enabled.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/rpc/virnetserver.h

index b47b71b4b22d972a62f93934f746a6051b6ad891..6b2541588c88e31701248f3f6139151d13450a99 100644 (file)
@@ -42,7 +42,7 @@ virNetServerPtr virNetServerNew(const char *name,
                                 virNetServerClientPrivPreExecRestart clientPrivPreExecRestart,
                                 virFreeCallback clientPrivFree,
                                 void *clientPrivOpaque)
-    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(11) ATTRIBUTE_NONNULL(13);
+    ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(10) ATTRIBUTE_NONNULL(12);
 
 virNetServerPtr virNetServerNewPostExecRestart(virJSONValuePtr object,
                                                const char *name,