]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix compilation
authorEric Bollengier <eric@baculasystems.com>
Wed, 22 Dec 2021 13:26:23 +0000 (14:26 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:57 +0000 (13:56 +0200)
Apparently, "linux" is a variable/object that already exists

bacula/src/stored/stored.c

index 5b71cdee2018021b6cf89a14a03c7d12fb545e82..24871722c359f5ced620313a1d483b0c7da0cb3e 100644 (file)
@@ -160,11 +160,11 @@ bail_out:
 static bool get_needed_caps()
 {
    /* Determine why we fail here */
-   bool linux, libcap;
+   bool islinux, libcap;
 #if defined(HAVE_LINUX_OS)
-   linux = true;
+   islinux = true;
 #else
-   linux = false;
+   islinux = false;
 #endif // HAVE_LINUX_OS
 
 #if defined(HAVE_LIBCAP)
@@ -173,7 +173,7 @@ static bool get_needed_caps()
    libcap = false;
 #endif // HAVE_LIBCAP
 
-   Dmsg2(90, "Returning from mocked get_needed_caps(), linux: %d libcap: %d\n",
+   Dmsg2(90, "Returning from mocked get_needed_caps(), islinux: %d libcap: %d\n",
          linux, libcap);
    return false;
 }