Use function pointers instead of a switch/case
modified libpkg/pkg_config.c
@@ -1254,6 +1254,7 @@ pkg_repo_new(const char *name, const char *url)
|
|
|
|
|
|
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -319,6 +319,9 @@ struct pkg_repo {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -470,4 +473,7 @@ int pkg_emit_manifest_sbuf(struct pkg*, struct sbuf *, short, char **);
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
modified libpkg/update.c
@@ -810,8 +810,8 @@ cleanup:
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -913,9 +913,5 @@ cleanup:
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |