Description: Fix narrowing error by casting to proper type for comparison
Author: Sven Hartge <sven@svenhartge.de>
Bug: https://bugs.bacula.org/view.php?id=2568
Last-Update: 2020-09-24

--- a/src/findlib/fstype.c
+++ b/src/findlib/fstype.c
@@ -188,7 +188,7 @@
        *
        *    $ 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 */
