Replace bzero with memset
This commit is contained in:
parent
2d509eb8bd
commit
3d1be1cd75
3 changed files with 1 additions and 9 deletions
4
configure
vendored
4
configure
vendored
|
@ -298,10 +298,6 @@ case $SYSTEM in
|
|||
EXTRA_CLI_LIBS="-lsocket -lnsl"
|
||||
add_def SOLARIS
|
||||
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
|
||||
;;
|
||||
|
|
|
@ -421,7 +421,7 @@ find_ordered_entry(double *x, int n, int index)
|
|||
{
|
||||
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);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -89,10 +89,6 @@
|
|||
#include <nlist.h>
|
||||
#endif
|
||||
|
||||
#if defined (HAS_NO_BZERO)
|
||||
#define bzero(ptr,n) memset(ptr,0,n)
|
||||
#endif /* HAS_NO_BZERO */
|
||||
|
||||
#if defined (WINNT)
|
||||
|
||||
/* Designed to work with the GCC from the GNAT-3.10 for Win32
|
||||
|
|
Loading…
Reference in a new issue