Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblongpath-rsync
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
liblongpath
liblongpath-rsync
Commits
b53c202e
Commit
b53c202e
authored
Jan 19, 2009
by
Wayne Davison
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A couple minor function-call tweaks.
parent
aef68d78
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
loadparm.c
loadparm.c
+4
-7
No files found.
loadparm.c
View file @
b53c202e
...
...
@@ -440,7 +440,7 @@ static void string_set(char **s, const char *v)
return
;
}
if
(
!
(
*
s
=
strdup
(
v
)))
exit_cleanup
(
RERR_MALLOC
);
out_of_memory
(
"string_set"
);
}
/* Copy the local_vars, duplicating any strings in the source. */
...
...
@@ -518,16 +518,13 @@ static int strwicmp(char *psz1, char *psz2)
}
/* Find a section by name. Otherwise works like get_section. */
static
int
getsectionbyname
(
char
*
name
,
local_vars
*
psectionDest
)
static
int
getsectionbyname
(
char
*
name
)
{
int
i
;
for
(
i
=
section_list
.
count
-
1
;
i
>=
0
;
i
--
)
{
if
(
strwicmp
(
iSECTION
(
i
).
name
,
name
)
==
0
)
{
if
(
psectionDest
!=
NULL
)
copy_section
(
psectionDest
,
&
iSECTION
(
i
));
if
(
strwicmp
(
iSECTION
(
i
).
name
,
name
)
==
0
)
break
;
}
}
return
i
;
...
...
@@ -541,7 +538,7 @@ static int add_a_section(char *name)
/* it might already exist */
if
(
name
)
{
i
=
getsectionbyname
(
name
,
NULL
);
i
=
getsectionbyname
(
name
);
if
(
i
>=
0
)
return
i
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment