cocci: fix NELEM vs nitems mix
modified libpkg/fetch.c
@@ -209,7 +209,7 @@ select_fetcher(const char *url)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_elf.c
@@ -859,7 +859,7 @@ pkg_get_myarch_elfparse(char *dest, size_t sz, struct os_info *oi)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_macho.c
@@ -150,7 +150,7 @@ add_dylibs_to_pkg(__unused void *actdata, struct pkg *pkg, const char *fpath,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_ports.c
@@ -668,7 +668,7 @@ apply_keyword_file(ucl_object_t *obj, struct plist *p, char *line, struct file_a
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -679,7 +679,7 @@ apply_keyword_file(ucl_object_t *obj, struct plist *p, char *line, struct file_a
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_version.c
@@ -196,7 +196,7 @@ get_component(const char *position, version_component *component)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkgdb_iterator.c
@@ -838,8 +838,10 @@ populate_pkg(sqlite3_stmt *stmt, struct pkg *pkg) {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -918,8 +920,10 @@ populate_pkg(sqlite3_stmt *stmt, struct pkg *pkg) {
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkgsign.c
@@ -82,7 +82,7 @@ pkgsign_new(const char *name, struct pkgsign_ctx **ctx)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -67,10 +67,6 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
|
|
|
|
|
modified libpkg/scripts.c
@@ -90,12 +90,12 @@ pkg_script_run(struct pkg * const pkg, pkg_script type, bool upgrade)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/cocci/pkg/NELEM.cocci
@@ -29,3 +29,10 @@ T[] E;
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |