Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=1b2becffeed47ce88316724d1ee4cdbc7ee0180e
Commit:     1b2becffeed47ce88316724d1ee4cdbc7ee0180e
Parent:     aeb3f46252e26acdc60a1a8e31fb1ca6319d9a07
Author:     Meelis Roos <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 00:38:12 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 15:39:39 2007 -0700

    alpha: fix objstrip.c compilation warnings
    
    In current 2.6.23-rc1+git, make bootimage gives the following warnings while
    compiling objstrip.c.  The patch below fixes these warnings by casting 
strncmp
    argument to char * - it does not seem feasible to change its type in struct
    elfhdr.
    
      HOSTCC  arch/alpha/boot/tools/objstrip
    arch/alpha/boot/tools/objstrip.c: In function 'main':
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of 'strlen' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of 'strlen' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of '__builtin_strcmp' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of 'strlen' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of '__builtin_strcmp' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of '__builtin_strcmp' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of '__builtin_strcmp' differ in signedness
    arch/alpha/boot/tools/objstrip.c:147: warning: pointer targets in passing 
argument 1 of 'strncmp' differ in signedness
    
    Signed-off-by: Meelis Roos <[EMAIL PROTECTED]>
    Cc: Jay Estabrook <[EMAIL PROTECTED]>
    Cc: Ivan Kokshaysky <[EMAIL PROTECTED]>
    Cc: Richard Henderson <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 arch/alpha/boot/tools/objstrip.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/alpha/boot/tools/objstrip.c b/arch/alpha/boot/tools/objstrip.c
index 96154e7..ef18382 100644
--- a/arch/alpha/boot/tools/objstrip.c
+++ b/arch/alpha/boot/tools/objstrip.c
@@ -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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to