git: build - Adjust _CMSG_ALIGN() for compatibility

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Aug 1 10:59:37 PDT 2019


commit 98f222c218c38303b867a9ed264e51eae7e46dd5
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Aug 1 10:01:17 2019 -0700

    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)

Summary of changes:
 sys/sys/socket.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/98f222c218c38303b867a9ed264e51eae7e46dd5


-- 
DragonFly BSD source repository


More information about the Commits mailing list