summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:28:04 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-09-21 13:28:04 +0200
commit40c49e36b845ed35c7151c2077f451fba362f98e (patch)
tree4908c98e47c2217cf8dea03c360213076166632c /exec
parente5c4d8bf46d00831bdb8da92edfe996ada0110fb (diff)
Fix gcc warning
* exec/hostarch.c (elf_machine_matches_host): Cast `&hostinfo` into host_info_t instead of natural_t *.
Diffstat (limited to 'exec')
-rw-r--r--exec/hostarch.c2
1 files changed, 1 insertions, 1 deletions
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);