]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix org#2568 About compilation issue on gcc10
authorSven Hartge <sven@svenhartge.de>
Mon, 30 Nov 2020 09:24:16 +0000 (10:24 +0100)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:59 +0000 (09:02 +0100)
bacula/src/findlib/fstype.c

index d2c013579f4d6737a5cc51bf15628100ab1c12fc..1a517e40f07bc4d8d358ed9b6d64385037eb4972 100644 (file)
@@ -277,7 +277,7 @@ bool fstype(char *fname, FF_PKT *ff_pkt, char *fs, int fslen)
        *
        *    $ grep -r SUPER_MAGIC /usr/include/linux
        */
-      switch (st.f_type) {
+      switch ((unsigned int)st.f_type) {
       /* Known good values */
       /* ext2, ext3, and ext4 have the same code */
       case 0xef53:         fstype = "ext2"; break;          /* EXT2_SUPER_MAGIC */