commit-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[hurd] 11/36: Fix gcc warning


From: Samuel Thibault
Subject: [hurd] 11/36: Fix gcc warning
Date: Tue, 24 Sep 2013 12:31:14 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch upstream
in repository hurd.

commit 40c49e36b845ed35c7151c2077f451fba362f98e
Author: Samuel Thibault <address@hidden>
Date:   Sat Sep 21 13:28:04 2013 +0200

    Fix gcc warning
    
    * exec/hostarch.c (elf_machine_matches_host): Cast `&hostinfo` into
    host_info_t instead of natural_t *.
---
 exec/hostarch.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/hostarch.c b/exec/hostarch.c
index ec59a41..b37adb9 100644
--- a/exec/hostarch.c
+++ b/exec/hostarch.c
@@ -39,7 +39,7 @@ elf_machine_matches_host (ElfW(Half) e_machine)
       mach_msg_type_number_t hostinfocnt = HOST_BASIC_INFO_COUNT;
 
       err = host_info (mach_host_self (), HOST_BASIC_INFO,
-                      (natural_t *) &hostinfo, &hostinfocnt);
+                      (host_info_t) &hostinfo, &hostinfocnt);
       if (err)
        return err;
       assert (hostinfocnt == HOST_BASIC_INFO_COUNT);

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]