ref: e3217c6f6a406d866238ce19bbb6d1aae17a71af
parent: 9ab096a707c4f943a9e6e886ad236c07e7a5aa13
author: cinap_lenrek <[email protected]>
date: Thu Jul 9 04:34:20 EDT 2015
sysexec(): make the mips compiler happy
--- a/sys/src/9/port/sysproc.c
+++ b/sys/src/9/port/sysproc.c
@@ -280,7 +280,8 @@
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){