diff options
author | Michael Schroeder <mls@suse.de> | 2012-12-03 17:03:23 +0100 |
---|---|---|
committer | Michael Schroeder <mls@suse.de> | 2012-12-03 17:03:23 +0100 |
commit | 54cf3722a231527588fb5e1dbb827519b167e143 (patch) | |
tree | bf7b7e1fd7b8de40a98e88da38afb59efaada208 | |
parent | 3f08b4d2d692bc5d6e3f5e46d1d537c19b7f2a26 (diff) | |
download | libsolv-54cf3722a231527588fb5e1dbb827519b167e143.tar.gz libsolv-54cf3722a231527588fb5e1dbb827519b167e143.tar.bz2 libsolv-54cf3722a231527588fb5e1dbb827519b167e143.zip |
fix typos in comments, fix queue free
-rw-r--r-- | src/selection.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/selection.c b/src/selection.c index 63db2c1..66552b2 100644 --- a/src/selection.c +++ b/src/selection.c @@ -585,7 +585,7 @@ selection_limit_evr(Pool *pool, Queue *selection, char *evr) queue_push(&q, p); if (sp > sevr) { - while (sevr < sp && *sevr == '0') /* normalize */ + while (sevr < sp && *sevr == '0') /* normalize epoch */ sevr++; } if (!lastepoch) @@ -600,7 +600,7 @@ selection_limit_evr(Pool *pool, Queue *selection, char *evr) id = pool_str2id(pool, evr, 1); /* no match at all or zero epoch */ else if (lastepochlen >= 0) { - /* found exactly one epoch, simlpy prepend */ + /* found exactly one epoch, simply prepend */ char *evrx = solv_malloc(strlen(evr) + lastepochlen + 2); strncpy(evrx, lastepoch, lastepochlen + 1); strcpy(evrx + lastepochlen + 1, evr); @@ -609,7 +609,7 @@ selection_limit_evr(Pool *pool, Queue *selection, char *evr) } else { - /* multiple epochs in multiple solvables, convert to listy of solvables */ + /* multiple epochs in multiple solvables, convert to list of solvables */ selection->elements[j] = (selection->elements[i] & ~SOLVER_SELECTMASK) | SOLVER_SOLVABLE_ONE_OF; selection->elements[j + 1] = pool_queuetowhatprovides(pool, &q); j += 2; @@ -619,10 +619,7 @@ selection_limit_evr(Pool *pool, Queue *selection, char *evr) queue_push2(&q, selection->elements[i], selection->elements[i + 1]); selection_limit_rel(pool, &q, REL_EQ, id); if (!q.count) - { - queue_free(&q); - continue; /* oops, no match */ - } + continue; /* oops, no match */ selection->elements[j] = q.elements[0]; selection->elements[j + 1] = q.elements[1]; j += 2; |