]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_ext2.c
Cleanup for GCC-4.x
[karo-tx-uboot.git] / common / cmd_ext2.c
index af836cd614ef4e61ad2eab6f137a914c69be9ddc..927e22f0300e89cad388976accbeb4760ea7e274 100644 (file)
@@ -231,7 +231,7 @@ int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
                        return(1);
                }
 
-               if (strncmp(info.type, BOOT_PART_TYPE, sizeof(info.type)) != 0) {
+               if (strncmp((char *)info.type, BOOT_PART_TYPE, sizeof(info.type)) != 0) {
                        printf ("\n** Invalid partition type \"%.32s\""
                                " (expect \"" BOOT_PART_TYPE "\")\n",
                                info.type);