Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 08 Jul 2018 22:45:14 +0000
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        "Pedro F. Giffuni" <pfg@FreeBSD.org>
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:  <38039.1531089914@critter.freebsd.dk>
In-Reply-To: <201807082239.w68MdXwD053621@repo.freebsd.org>
References:  <201807082239.w68MdXwD053621@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
--------
In message <201807082239.w68MdXwD053621@repo.freebsd.org>, "Pedro F. Giffu=
ni" writes:

>  New version:
>  =

>      usize =3D buf[4];
>      usize |=3D (unsigned int)buf[5] << 8;
>      usize |=3D (unsigned int)buf[6] << 16;
>      usize |=3D (unsigned int)buf[7] << 24;

Why not use the functions in endian.h ?

-- =

Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk@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=
.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38039.1531089914>