]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - arch/alpha/boot/tools/objstrip.c
alpha: fix objstrip.c compilation warnings
[mirror_ubuntu-artful-kernel.git] / arch / alpha / boot / tools / objstrip.c
index 96154e768a20d66a34d48a4301e7d80d4eaaa6b3..ef1838230291190f6fcdb2e151919594b738edc1 100644 (file)
@@ -144,7 +144,7 @@ main (int argc, char *argv[])
 #ifdef __ELF__
     elf = (struct elfhdr *) buf;
 
-    if (elf->e_ident[0] == 0x7f && strncmp(elf->e_ident + 1, "ELF", 3) == 0) {
+    if (elf->e_ident[0] == 0x7f && strncmp((char *)elf->e_ident + 1, "ELF", 3) == 0) {
        if (elf->e_type != ET_EXEC) {
            fprintf(stderr, "%s: %s is not an ELF executable\n",
                    prog_name, inname);