for consistency use memcpy/memset everywhere instead of bcopy/bzero
[rsync/rsync.git] / loadparm.c
index 0ddbc61..42762c3 100644 (file)
@@ -329,7 +329,7 @@ initialise a service to the defaults
 ***************************************************************************/
 static void init_service(service *pservice)
 {
-       bzero((char *)pservice,sizeof(service));
+       memset((char *)pservice,0,sizeof(service));
        copy_service(pservice,&sDefault);
 }
 
@@ -366,12 +366,7 @@ static int add_a_service(service *pservice, char *name)
 
   i = iNumServices;
 
-  if (ServicePtrs) {
-         ServicePtrs = (service **)realloc(ServicePtrs,
-                                           sizeof(service *)*num_to_alloc);
-  } else {
-         ServicePtrs = (service **)malloc(sizeof(service *)*num_to_alloc);
-  }
+  ServicePtrs = (service **)Realloc(ServicePtrs,sizeof(service *)*num_to_alloc);
 
   if (ServicePtrs)
          pSERVICE(iNumServices) = (service *)malloc(sizeof(service));