]> git.ozlabs.org Git - yaboot.git/blobdiff - second/fs_xfs.c
warnings: Add explict casts to silence many compiler warnings about sign comparisions.
[yaboot.git] / second / fs_xfs.c
index e27d857a7d23b87ada047d7376cc8fc614b6ad36..789106871aa388d246a784e87e1eeb38def8314f 100644 (file)
@@ -490,7 +490,7 @@ next_dentry (xfs_ino_t *ino)
        int toread;
        static char *usual[2] = {".", ".."};
        static xfs_dir2_sf_entry_t *sfe;
-       char *name = usual[0];
+       unsigned char *name = (unsigned char *)usual[0];
 
        if (xfs.dirpos >= xfs.dirmax) {
                if (xfs.forw == 0)
@@ -552,14 +552,14 @@ next_dentry (xfs_ino_t *ino)
 #undef dau
                toread = roundup8 (namelen + 11) - 9;
                xfs_read_data (dirbuf, toread);
-               name = (char *)dirbuf;
+               name = (unsigned char *)dirbuf;
                xfs.blkoff += toread + 5;
                break;
        }
        ++xfs.dirpos;
        name[namelen] = 0;
 
-       return name;
+       return (char *)name;
 }
 
 static char *