]> 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>
Mon, 30 Nov 2020 09:24:32 +0000 (10:24 +0100)
bacula/src/findlib/fstype.c

index 107f7a877f71af2245cc40b0b74b6b98906f859b..c82107abcaffa76fa7d5517d666d98cb65ad70f5 100644 (file)
@@ -188,7 +188,7 @@ bool fstype(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 */