]> err.no Git - util-linux/commitdiff
lib: fsprobe - fix gcc warning
authorKarel Zak <kzak@redhat.com>
Mon, 16 Mar 2009 12:08:45 +0000 (13:08 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 16 Mar 2009 12:08:45 +0000 (13:08 +0100)
lib/fsprobe.c: In function ‘fsprobe_get_fstype_by_devname’:
lib/fsprobe.c:243: warning: return discards qualifiers from pointer target type

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/fsprobe.c

index 2091d1169ed10c4eacb5b7c13c7b2be757acca49..8c9eb6dc4a1be3d088760b2a722ba3e082859d43 100644 (file)
@@ -227,7 +227,7 @@ char *
 fsprobe_get_fstype_by_devname(const char *devname)
 {
        blkid_cache c;
-       const char *tp;
+       char *tp;
 
        if (blcache)
                return blkid_get_tag_value(blcache, "TYPE", devname);