]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix invalid argument reference in virnetdev.h
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 14 May 2013 16:24:52 +0000 (18:24 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 14 May 2013 16:27:51 +0000 (18:27 +0200)
Commit ccff335f added ATTRIBUTE_NONNULL for an attribute which is not
a pointer and made files including virnetdev.h not compilable, so fix
that.

src/util/virnetdev.h

index 0b394ad9828c5da2af6feabdd7088e16180d668b..bc0777ceb1f3f44bb89c159920fa450b73d2d325 100644 (file)
@@ -48,7 +48,7 @@ int virNetDevAddRoute(const char *ifname,
                       virSocketAddrPtr gateway,
                       unsigned int metric)
     ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(4)
-    ATTRIBUTE_NONNULL(5) ATTRIBUTE_RETURN_CHECK;
+    ATTRIBUTE_RETURN_CHECK;
 int virNetDevClearIPv4Address(const char *ifname,
                               virSocketAddr *addr,
                               unsigned int prefix)