Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
for consistency use memcpy/memset everywhere instead of bcopy/bzero
[rsync/rsync.git]
/
loadparm.c
diff --git
a/loadparm.c
b/loadparm.c
index
0ddbc61
..
42762c3
100644
(file)
--- a/
loadparm.c
+++ b/
loadparm.c
@@
-329,7
+329,7
@@
initialise a service to the defaults
***************************************************************************/
static void init_service(service *pservice)
{
***************************************************************************/
static void init_service(service *pservice)
{
-
bzero((char *)pservice
,sizeof(service));
+
memset((char *)pservice,0
,sizeof(service));
copy_service(pservice,&sDefault);
}
copy_service(pservice,&sDefault);
}
@@
-366,12
+366,7
@@
static int add_a_service(service *pservice, char *name)
i = iNumServices;
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));
if (ServicePtrs)
pSERVICE(iNumServices) = (service *)malloc(sizeof(service));