<div dir="ltr">Hi<br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/1/19 Jean-Christophe PLAGNIOL-VILLARD <span dir="ltr"><<a href="mailto:plagnioj@jcrosoft.com" target="_blank">plagnioj@jcrosoft.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">to detect if it's a barebox for the current running arch<br>
<br>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <<a href="mailto:plagnioj@jcrosoft.com">plagnioj@jcrosoft.com</a>><br>
---<br>
 include/filetype.h |    5 +++++<br>
 1 file changed, 5 insertions(+)<br>
<br>
diff --git a/include/filetype.h b/include/filetype.h<br>
index c2af917..05b0f5c 100644<br>
--- a/include/filetype.h<br>
+++ b/include/filetype.h<br>
@@ -66,4 +66,9 @@ static inline int is_barebox_mips_head(const char *head)<br>
 }<br>
 #endif<br>
<br>
+static inline int is_barebox_head(const char *head)<br>
+{<br>
+       return is_barebox_mips_head(head) || is_barebox_mips_head(head);<br></blockquote><div><br>Is this not the same like:<br>return is_barebox_mips_head(head); ?<br><br>Or is there some side effects during the first call of is_barebox_mips_head(head)?<br>
<br>Regards<br>Alex<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
+}<br>
+<br>
 #endif /* __FILE_TYPE_H */<br>
<span class=""><font color="#888888">--<br>
1.7.10.4<br>
<br>
<br>
_______________________________________________<br>
barebox mailing list<br>
<a href="mailto:barebox@lists.infradead.org">barebox@lists.infradead.org</a><br>
<a href="http://lists.infradead.org/mailman/listinfo/barebox" target="_blank">http://lists.infradead.org/mailman/listinfo/barebox</a><br>
</font></span></blockquote></div><br></div></div>