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

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Jul 8 22:45:22 UTC 2018


--------
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 ?

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.


More information about the svn-src-head mailing list