diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-09 08:34:20 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-07-09 08:34:20 +0200 |
commit | e3217c6f6a406d866238ce19bbb6d1aae17a71af (patch) | |
tree | 77d25a7afd57538c3a979c707efa493750904aa7 /sys/src/9/port/sysproc.c | |
parent | 9ab096a707c4f943a9e6e886ad236c07e7a5aa13 (diff) |
sysexec(): make the mips compiler happy
Diffstat (limited to 'sys/src/9/port/sysproc.c')
-rw-r--r-- | sys/src/9/port/sysproc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/9/port/sysproc.c b/sys/src/9/port/sysproc.c index fe539056c..1cbfdf216 100644 --- a/sys/src/9/port/sysproc.c +++ b/sys/src/9/port/sysproc.c @@ -280,7 +280,8 @@ sysexec(va_list list) n = devtab[tc->type]->read(tc, &exec, sizeof(Exec), 0); if(n <= 2) error(Ebadexec); - if(n == sizeof(Exec) && (magic = l2be(exec.magic)) == AOUT_MAGIC){ + magic = l2be(exec.magic); + if(n == sizeof(Exec) && magic == AOUT_MAGIC){ text = l2be(exec.text); entry = l2be(exec.entry); switch(magic){ |