]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix conflicting types of virInitctlSetRunLevel
authorJán Tomko <jtomko@redhat.com>
Tue, 18 Feb 2014 14:01:32 +0000 (15:01 +0100)
committerJán Tomko <jtomko@redhat.com>
Tue, 18 Feb 2014 14:05:06 +0000 (15:05 +0100)
aebbcdd didn't change the non-linux definition of the function,
breaking the build on FreeBSD:

../../src/util/virinitctl.c:164: error: conflicting types for
'virInitctlSetRunLevel'
../../src/util/virinitctl.h:40: error: previous declaration of
'virInitctlSetRunLevel' was here

src/util/virinitctl.c

index 579268fb4723e8c890a2a082bc63ef84d88b2572..012200ce32465368f80dffdbede418dc6a7c81d8 100644 (file)
@@ -159,8 +159,7 @@ cleanup:
     return ret;
 }
 #else
-int virInitctlSetRunLevel(virInitctlRunLevel level ATTRIBUTE_UNUSED,
-                          const char *vroot ATTRIBUTE_UNUSED)
+int virInitctlSetRunLevel(virInitctlRunLevel level ATTRIBUTE_UNUSED)
 {
     virReportUnsupportedError();
     return -1;