libpkg/../query.c: use constness, test branch once, and others
modified libpkg/repo/binary/query.c
@@ -187,7 +187,7 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -196,7 +196,7 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -214,10 +214,8 @@ pkg_repo_binary_query(struct pkg_repo *repo, const char *cond, const char *patte
|
|
|
|
|
|
| - | |
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -361,6 +359,7 @@ pkg_repo_binary_require(struct pkg_repo *repo, const char *provide)
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -397,7 +396,7 @@ static int
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|