From 40c49e36b845ed35c7151c2077f451fba362f98e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 13:28:04 +0200 Subject: 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(-) (limited to 'exec') diff --git a/exec/hostarch.c b/exec/hostarch.c index ec59a417..b37adb97 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); -- cgit v1.2.3