]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
Replace bzero with memset
authorMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jun 2013 11:48:16 +0000 (13:48 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Fri, 14 Jun 2013 11:48:16 +0000 (13:48 +0200)
configure
regress.c
sysincl.h

index 4ad6cbf1321a9648ba97830ea2499ce11ce513cb..5d6b57d8120da11d94134db1e7cd77ab35863fb1 100755 (executable)
--- 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
     ;;
index 89222886af4afbbe79ea40c86e8fa106643ed2c4..0611292aaea035fb24b9b809a663e53276be15ff 100644 (file)
--- 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
index 55c020779189e37afd8f06851f319d4c0bf01f75..9bc5fe3c1af206e1da165f54619dd5b42f984d7a 100644 (file)
--- a/sysincl.h
+++ b/sysincl.h
 #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