From 3d1be1cd75b4c698fa931c156c4c5c3b57445c88 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Fri, 14 Jun 2013 13:48:16 +0200 Subject: [PATCH] Replace bzero with memset --- configure | 4 ---- regress.c | 2 +- sysincl.h | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/configure b/configure index 4ad6cbf1..5d6b57d8 100755 --- a/configure +++ b/configure @@ -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 ;; diff --git a/regress.c b/regress.c index 89222886..0611292a 100644 --- a/regress.c +++ b/regress.c @@ -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 diff --git a/sysincl.h b/sysincl.h index 55c02077..9bc5fe3c 100644 --- a/sysincl.h +++ b/sysincl.h @@ -89,10 +89,6 @@ #include #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 -- 2.47.2