darwin: Replace bzero() with memset()
authorVianney le Clément de Saint-Marcq <vianney.leclement@essensium.com>
Mon, 11 Apr 2016 10:33:20 +0000 (12:33 +0200)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 4 Jan 2017 16:41:10 +0000 (17:41 +0100)
commitf3a9060d19cac341581f4a4e1877054dbb606a00
tree4bb80831eef1677760648ce41bfbe0a276842d91
parent138934cab6976d7dc0b09da4f42bf57eb8c8ca90
darwin: Replace bzero() with memset()

The bzero() function is a deprecated BSD function that can be replaced
by the standard C90 memset() function.

From memset(4) manpage:
  The memset() function conforms to ISO/IEC 9899:1990 (``ISO C90'').

From bzero(3) manpage:
  bzero() was deprecated in IEEE Std 1003.1-2001 (``POSIX.1'') and removed
  in IEEE Std 1003.1-2008 (``POSIX.1'').

When compiling for POSIX 2008, the bzero() function is undefined on the
OS X platform.
libusb/os/darwin_usb.c
libusb/version_nano.h