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
3b034c39
Commit
3b034c39
authored
Oct 30, 2018
by
Josh Soref
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spelling: array
Signed-off-by:
Josh Soref
<
jsoref@gmail.com
>
parent
a1e0e6df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lxccontainer.c
src/lxc/lxccontainer.c
+2
-2
No files found.
src/lxc/lxccontainer.c
View file @
3b034c39
...
@@ -2254,7 +2254,7 @@ static bool add_to_array(char ***names, char *cname, int pos)
...
@@ -2254,7 +2254,7 @@ static bool add_to_array(char ***names, char *cname, int pos)
if
(
!
newnames
[
pos
])
if
(
!
newnames
[
pos
])
return
false
;
return
false
;
/* Sort the arr
r
ay as we will use binary search on it. */
/* Sort the array as we will use binary search on it. */
qsort
(
newnames
,
pos
+
1
,
sizeof
(
char
*
),
qsort
(
newnames
,
pos
+
1
,
sizeof
(
char
*
),
(
int
(
*
)(
const
void
*
,
const
void
*
))
string_cmp
);
(
int
(
*
)(
const
void
*
,
const
void
*
))
string_cmp
);
...
@@ -2273,7 +2273,7 @@ static bool add_to_clist(struct lxc_container ***list, struct lxc_container *c,
...
@@ -2273,7 +2273,7 @@ static bool add_to_clist(struct lxc_container ***list, struct lxc_container *c,
*
list
=
newlist
;
*
list
=
newlist
;
newlist
[
pos
]
=
c
;
newlist
[
pos
]
=
c
;
/* Sort the arr
r
ay as we will use binary search on it. */
/* Sort the array as we will use binary search on it. */
if
(
sort
)
if
(
sort
)
qsort
(
newlist
,
pos
+
1
,
sizeof
(
struct
lxc_container
*
),
qsort
(
newlist
,
pos
+
1
,
sizeof
(
struct
lxc_container
*
),
(
int
(
*
)(
const
void
*
,
const
void
*
))
container_cmp
);
(
int
(
*
)(
const
void
*
,
const
void
*
))
container_cmp
);
...
...
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