mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 21:15:07 -05:00
Replace bzero with memset
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -298,10 +298,6 @@ case $SYSTEM in
|
|||||||
EXTRA_CLI_LIBS="-lsocket -lnsl"
|
EXTRA_CLI_LIBS="-lsocket -lnsl"
|
||||||
add_def SOLARIS
|
add_def SOLARIS
|
||||||
echo "Configuring for Solaris (" $SYSTEM "SunOS version" $VERSION ")"
|
echo "Configuring for Solaris (" $SYSTEM "SunOS version" $VERSION ")"
|
||||||
if [ $VERSION = "5.3" ]; then
|
|
||||||
add_def HAS_NO_BZERO
|
|
||||||
echo "Using memset() instead of bzero()"
|
|
||||||
fi
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -421,7 +421,7 @@ find_ordered_entry(double *x, int n, int index)
|
|||||||
{
|
{
|
||||||
int flags[MAX_POINTS];
|
int flags[MAX_POINTS];
|
||||||
|
|
||||||
bzero(flags, n * sizeof(int));
|
memset(flags, 0, n * sizeof(int));
|
||||||
return find_ordered_entry_with_flags(x, n, index, flags);
|
return find_ordered_entry_with_flags(x, n, index, flags);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -89,10 +89,6 @@
|
|||||||
#include <nlist.h>
|
#include <nlist.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined (HAS_NO_BZERO)
|
|
||||||
#define bzero(ptr,n) memset(ptr,0,n)
|
|
||||||
#endif /* HAS_NO_BZERO */
|
|
||||||
|
|
||||||
#if defined (WINNT)
|
#if defined (WINNT)
|
||||||
|
|
||||||
/* Designed to work with the GCC from the GNAT-3.10 for Win32
|
/* Designed to work with the GCC from the GNAT-3.10 for Win32
|
||||||
|
|||||||
Reference in New Issue
Block a user