Add 'restrict' to function prototypes.
modified libpkg/pkg.h.in
@@ -1385,7 +1385,7 @@ struct pkg_repo *pkg_repo_find_name(const char *name);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1393,7 +1393,7 @@ int pkg_printf(const char *fmt, ...);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1403,7 +1403,7 @@ int pkg_fprintf(FILE *stream, const char *fmt, ...);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1415,7 +1415,8 @@ int pkg_dprintf(int fd, const char *fmt, ...);
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1426,7 +1427,7 @@ int pkg_snprintf(char *str, size_t size, const char *fmt, ...);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1435,7 +1436,8 @@ int pkg_asprintf(char **ret, const char *fmt, ...);
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1445,6 +1447,7 @@ struct sbuf *pkg_sbuf_printf(struct sbuf *sbuf, const char *fmt, ...);
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
modified libpkg/pkg_printf.c
@@ -2050,7 +2050,7 @@ process_format_main(struct sbuf *sbuf, const char *f, va_list ap)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2079,7 +2079,7 @@ pkg_printf(const char *format, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2110,7 +2110,7 @@ pkg_fprintf(FILE *stream, const char *format, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2143,7 +2143,8 @@ pkg_dprintf(int fd, const char *format, ...)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -2175,7 +2176,7 @@ pkg_snprintf(char *str, size_t size, const char *format, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2207,7 +2208,7 @@ pkg_asprintf(char **ret, const char *format, ...)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -2227,7 +2228,8 @@ pkg_sbuf_printf(struct sbuf *sbuf, const char *format, ...)
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|