Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
8db9d26f
Unverified
Commit
8db9d26f
authored
Jul 26, 2018
by
Christian Brauner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
conf: s/strtok_r()/lxc_iterate_parts()/g
Signed-off-by:
Christian Brauner
<
christian.brauner@ubuntu.com
>
parent
0be0d78f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
conf.c
src/lxc/conf.c
+2
-4
No files found.
src/lxc/conf.c
View file @
8db9d26f
...
@@ -1888,7 +1888,6 @@ static void parse_mntopt(char *opt, unsigned long *flags, char **data, size_t si
...
@@ -1888,7 +1888,6 @@ static void parse_mntopt(char *opt, unsigned long *flags, char **data, size_t si
int
parse_mntopts
(
const
char
*
mntopts
,
unsigned
long
*
mntflags
,
char
**
mntdata
)
int
parse_mntopts
(
const
char
*
mntopts
,
unsigned
long
*
mntflags
,
char
**
mntdata
)
{
{
char
*
data
,
*
p
,
*
s
;
char
*
data
,
*
p
,
*
s
;
char
*
saveptr
=
NULL
;
size_t
size
;
size_t
size
;
*
mntdata
=
NULL
;
*
mntdata
=
NULL
;
...
@@ -1909,7 +1908,7 @@ int parse_mntopts(const char *mntopts, unsigned long *mntflags, char **mntdata)
...
@@ -1909,7 +1908,7 @@ int parse_mntopts(const char *mntopts, unsigned long *mntflags, char **mntdata)
}
}
*
data
=
0
;
*
data
=
0
;
for
(;
(
p
=
strtok_r
(
s
,
","
,
&
saveptr
));
s
=
NULL
)
lxc_iterate_parts
(
p
,
s
,
","
)
parse_mntopt
(
p
,
mntflags
,
&
data
,
size
);
parse_mntopt
(
p
,
mntflags
,
&
data
,
size
);
if
(
*
data
)
if
(
*
data
)
...
@@ -1942,7 +1941,6 @@ static void parse_propagationopt(char *opt, unsigned long *flags)
...
@@ -1942,7 +1941,6 @@ static void parse_propagationopt(char *opt, unsigned long *flags)
static
int
parse_propagationopts
(
const
char
*
mntopts
,
unsigned
long
*
pflags
)
static
int
parse_propagationopts
(
const
char
*
mntopts
,
unsigned
long
*
pflags
)
{
{
char
*
p
,
*
s
;
char
*
p
,
*
s
;
char
*
saveptr
=
NULL
;
if
(
!
mntopts
)
if
(
!
mntopts
)
return
0
;
return
0
;
...
@@ -1954,7 +1952,7 @@ static int parse_propagationopts(const char *mntopts, unsigned long *pflags)
...
@@ -1954,7 +1952,7 @@ static int parse_propagationopts(const char *mntopts, unsigned long *pflags)
}
}
*
pflags
=
0L
;
*
pflags
=
0L
;
for
(;
(
p
=
strtok_r
(
s
,
","
,
&
saveptr
));
s
=
NULL
)
lxc_iterate_parts
(
p
,
s
,
","
)
parse_propagationopt
(
p
,
pflags
);
parse_propagationopt
(
p
,
pflags
);
free
(
s
);
free
(
s
);
...
...
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