Date: Sun, 8 Jul 2018 18:23:32 -0500 From: Pedro Giffuni <pfg@FreeBSD.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r336113 - head/usr.bin/gzip Message-ID: <ef22d60e-8c35-7141-440d-748087a680f0@FreeBSD.org> In-Reply-To: <38039.1531089914@critter.freebsd.dk> References: <201807082239.w68MdXwD053621@repo.freebsd.org> <38039.1531089914@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07/08/18 17:45, Poul-Henning Kamp wrote: > -------- > In message <201807082239.w68MdXwD053621@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ef22d60e-8c35-7141-440d-748087a680f0>