build - Adjust _CMSG_ALIGN() for compatibility
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Aug 2019 17:01:17 +0000 (10:01 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 1 Aug 2019 17:01:17 +0000 (10:01 -0700)
commit98f222c218c38303b867a9ed264e51eae7e46dd5
treecf4f59654924577b8fde213adf19155f0bc50a78
parent24cc3c35850183abb21b7611b5bba0ab239afdad
build - Adjust _CMSG_ALIGN() for compatibility

* The argument to _CMSG_ALIGN() is commonly unsigned, fix compiler
  warnings by making the alignment constants unsigned.

* Also take a page from FreeBSD and cast the (n) argument to an
  unsigned quantity (size_t).

* Note that the alignment code is still hardwired to 4 bytes,
  and will eventually have to be changed to something more portable.
  For now do not change it as doing so would introduce an ABI
  incompatibility.

Rerported-by: rsmarples (Roy Marples)
sys/sys/socket.h