Skip to content

Commit

Permalink
spelling: array
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <jsoref@gmail.com>
  • Loading branch information
jsoref authored and Christian Brauner committed Nov 22, 2018
1 parent 6f7621d commit d63f180
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/lxccontainer.c
Expand Up @@ -2232,7 +2232,7 @@ static bool add_to_array(char ***names, char *cname, int pos)
if (!newnames[pos])
return false;

/* Sort the arrray 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 *),
(int (*)(const void *, const void *))string_cmp);

Expand All @@ -2251,7 +2251,7 @@ static bool add_to_clist(struct lxc_container ***list, struct lxc_container *c,
*list = newlist;
newlist[pos] = c;

/* Sort the arrray as we will use binary search on it. */
/* Sort the array as we will use binary search on it. */
if (sort)
qsort(newlist, pos + 1, sizeof(struct lxc_container *),
(int (*)(const void *, const void *))container_cmp);
Expand Down

0 comments on commit d63f180

Please sign in to comment.