Remove HAVE_MEMSET ifdefs
memset(3) has been in standard C since C89. It is also in POSIX.1-2001, in SVr4, and in 4.3BSD (see memset(3) and memset(3p)). We can assume that this function is always available. Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
This commit is contained in:
parent
047bfc47c6
commit
b7e12ec04e
@ -53,7 +53,7 @@ AC_CHECK_HEADER([shadow.h],,[AC_MSG_ERROR([You need a libc with shadow.h])])
|
|||||||
|
|
||||||
AC_CHECK_FUNCS(arc4random_buf l64a fchmod fchown fsync futimes getgroups \
|
AC_CHECK_FUNCS(arc4random_buf l64a fchmod fchown fsync futimes getgroups \
|
||||||
gethostname getentropy getrandom getspnam gettimeofday getusershell \
|
gethostname getentropy getrandom getspnam gettimeofday getusershell \
|
||||||
getutent initgroups lchown lckpwdf lstat lutimes memset \
|
getutent initgroups lchown lckpwdf lstat lutimes \
|
||||||
setgroups sigaction strchr updwtmp updwtmpx innetgr getpwnam_r \
|
setgroups sigaction strchr updwtmp updwtmpx innetgr getpwnam_r \
|
||||||
getpwuid_r getgrnam_r getgrgid_r getspnam_r getaddrinfo ruserok \
|
getpwuid_r getgrnam_r getgrgid_r getspnam_r getaddrinfo ruserok \
|
||||||
dlopen)
|
dlopen)
|
||||||
|
@ -111,11 +111,7 @@ char *strchr (), *strrchr (), *strtok ();
|
|||||||
# endif
|
# endif
|
||||||
#endif /* not TIME_WITH_SYS_TIME */
|
#endif /* not TIME_WITH_SYS_TIME */
|
||||||
|
|
||||||
#ifdef HAVE_MEMSET
|
#define memzero(ptr, size) memset((void *)(ptr), 0, (size))
|
||||||
# define memzero(ptr, size) memset((void *)(ptr), 0, (size))
|
|
||||||
#else
|
|
||||||
# define memzero(ptr, size) bzero((char *)(ptr), (size))
|
|
||||||
#endif
|
|
||||||
#define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */
|
#define strzero(s) memzero(s, strlen(s)) /* warning: evaluates twice */
|
||||||
|
|
||||||
#ifdef HAVE_DIRENT_H /* DIR_SYSV */
|
#ifdef HAVE_DIRENT_H /* DIR_SYSV */
|
||||||
|
Loading…
Reference in New Issue
Block a user