svn commit: r336113 - head/usr.bin/gzip

Pedro Giffuni pfg at FreeBSD.org
Sun Jul 8 23:23:38 UTC 2018



On 07/08/18 17:45, Poul-Henning Kamp wrote:
> --------
> In message <201807082239.w68MdXwD053621 at repo.freebsd.org>, "Pedro F. Giffuni" writes:
>
>>   New version:
>>   
>>       usize = buf[4];
>>       usize |= (unsigned int)buf[5] << 8;
>>       usize |= (unsigned int)buf[6] << 16;
>>       usize |= (unsigned int)buf[7] << 24;
> Why not use the functions in endian.h ?
>
Hmm. .. I am just syncing with NetBSD, where this originated from :-/.
But good point.

Pedro.



More information about the svn-src-all mailing list