On 07/08/18 17:45, Poul-Henning Kamp wrote:
--------
In message <201807082239.w68mdxwd053...@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.

_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to