summaryrefslogtreecommitdiff
path: root/exec/hostarch.c
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-07-07 02:12:51 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-07-07 02:12:51 +0000
commit95e9e7727f9342f724b7a936f1053e6f415a3679 (patch)
treea2925e3e06a3486f193e94da88887d52b1bc7b06 /exec/hostarch.c
parent094c8b9af574d866289102ad42b52e92805bfd8c (diff)
(bfd_mach_host_arch_mach): Remove assignment from inside if test.
Diffstat (limited to 'exec/hostarch.c')
-rw-r--r--exec/hostarch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/exec/hostarch.c b/exec/hostarch.c
index 398e6423..38a38a00 100644
--- a/exec/hostarch.c
+++ b/exec/hostarch.c
@@ -35,8 +35,8 @@ bfd_mach_host_arch_mach (host_t host,
struct host_basic_info hostinfo;
mach_msg_type_number_t hostinfocnt = HOST_BASIC_INFO_COUNT;
- if (err = host_info (host, HOST_BASIC_INFO,
- (natural_t *) &hostinfo, &hostinfocnt))
+ err = host_info (host, HOST_BASIC_INFO, (natural_t *) &hostinfo, &hostinfocnt);
+ if (err)
return err;
*machine = hostinfo.cpu_subtype;