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
replace calls to strcmp() with a u_strcmp() function that uses only
[rsync/rsync.git]
/
loadparm.c
diff --git
a/loadparm.c
b/loadparm.c
index
0ddbc61
..
b17c387
100644
(file)
--- a/
loadparm.c
+++ b/
loadparm.c
@@
-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));