<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Apr 3, 2017 at 2:52 PM, Rob Landley <span dir="ltr"><<a href="mailto:rob@landley.net" target="_blank">rob@landley.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">// GNU file shows the source OS and timestamp too but busybox and toybox<br>
// leave those unknown/blank, so reporting them isn't obviously useful.<br>
<br>
Busybox hasn't got "file". I agree reporting them isn't obviously<br>
useful, but I think I'm yanking the comment (or at least moving it to<br>
the checkin comment).<br></blockquote><div><br></div><div>i meant "busybox and toybox [when generating gzip data] leave those unknown/blank".</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
And while we're at it, in zip detection...<br>
<br>
    int ver = (int)(char)(toybuf[4]);<br>
<br>
A double typecast is never a good sign, but here we compile with<br>
-funsigned-char (for consistency across architectures) which toybuf[4]<br>
already _is_ an instance of so... what is this doing? Did they mean to<br>
typecast it to (signed char) and then... llvm complained maybe? Can the<br>
zip version be negative?<br>
<br>
I'm confused!</blockquote><div><br></div><div><div>me too. the rest of the code uses peek_le/peek_be for that kind of thing.</div><div><br></div><div>830f2561 toys/pending/file.c (Isaac Dunham   2016-02-29 11:29:21 -0600 247)     int ver = (int)(char)(toybuf[4]);</div></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-HOEnZb"><font color="#888888"><br>
Rob<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Elliott Hughes - <a href="http://who/enh" target="_blank">http://who/enh</a> - <a href="http://jessies.org/~enh/" target="_blank">http://jessies.org/~enh/</a><br>Android native code/tools questions? Mail me/drop by/add me as a reviewer.</div>
</div></div>