Sort out some usages of const and restrict
modified libpkg/pkg.c
@@ -2,6 +2,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -148,7 +149,7 @@ pkg_free(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -156,7 +157,7 @@ pkg_type(struct pkg const * const pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -181,7 +182,7 @@ pkg_is_valid(struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -227,7 +228,7 @@ pkg_vget(struct pkg const *const pkg, va_list ap)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1314,8 +1315,10 @@ pkg_has_message(struct pkg *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
| + | |
| + | |
|
|
|
|
|
modified libpkg/pkg.h.in
@@ -486,7 +486,7 @@ void pkg_free(struct pkg *);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -502,7 +502,7 @@ int pkg_open(struct pkg **p, const char *path, struct pkg_manifest_key *keys, in
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1499,6 +1499,6 @@ struct sbuf *pkg_sbuf_vprintf(struct sbuf * restrict sbuf,
|
|
|
|
|
|
| - | |
| + | |
|
|
|