Fix up compiler errors and warning in what we have so far.
modified libpkg/pkg.h
@@ -1069,7 +1069,7 @@ void pkgdb_cmd(int argc, char **argv);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1077,7 +1077,7 @@ int pkg_printf(const char*fmt, const struct pkg *pkg);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1087,7 +1087,7 @@ int pkg_fprintf(FILE *stream, const char *fmt, const struct pkg *pkg);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1099,7 +1099,7 @@ int pkg_dprintf(int fd, const char *fmt, const struct pkg *pkg);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1110,7 +1110,7 @@ int pkg_snprintf(char *str, size_t size, const char *fmt, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1120,7 +1120,7 @@ int pkg_asprintf(char **ret, const char *fmt, const struct pkg *pkg);
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_printf.c
@@ -31,6 +31,8 @@
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
@@ -42,10 +44,14 @@
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -76,7 +82,7 @@ static struct percent_esc *
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -229,7 +235,6 @@ static const char*
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -354,13 +359,13 @@ gen_format(char *buf, size_t buflen, unsigned flags, const char *tail)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -377,7 +382,7 @@ gen_format(char *buf, size_t buflen, unsigned flags, const char *tail)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -398,7 +403,6 @@ human_number(struct sbuf *sbuf, int64_t number, struct percent_esc *p)
|
|
|
|
|
|
| - | |
|
|
|
|
|
@@ -446,7 +450,7 @@ string_val(struct sbuf *sbuf, const char *str, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -489,10 +493,9 @@ list_count(struct sbuf *sbuf, int64_t count, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -506,10 +509,9 @@ format_shlibs(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -525,10 +527,9 @@ format_categories(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -542,10 +543,9 @@ format_directories(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -559,10 +559,9 @@ format_files(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -576,10 +575,9 @@ format_groups(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -592,8 +590,7 @@ format_licenses(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -607,10 +604,9 @@ format_message(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -624,11 +620,10 @@ format_options(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -642,8 +637,7 @@ format_users(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -652,7 +646,7 @@ format_autoremove(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -666,10 +660,9 @@ format_autoremove(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -681,11 +674,10 @@ format_comment(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -697,8 +689,7 @@ format_dependencies(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -712,14 +703,26 @@ format_add_info(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -729,15 +732,14 @@ format_license_logic(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -749,8 +751,7 @@ format_maintainer(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -762,8 +763,7 @@ format_name(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -775,8 +775,7 @@ format_origin(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -790,10 +789,9 @@ format_prefix(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
@@ -809,29 +807,37 @@ format_requirements(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -839,8 +845,7 @@ format_install_tstamp(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -852,7 +857,7 @@ format_version(struct sbuf *sbuf, const struct pkg *pkg,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -965,8 +970,8 @@ parse_escape(const char *f, struct percent_esc **p)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -1071,7 +1076,7 @@ process_format(struct sbuf *sbuf, const char *f, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1092,7 +1097,7 @@ pkg_printf(const char *fmt, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1115,7 +1120,7 @@ pkg_fprintf(FILE *stream, const char *fmt, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1140,7 +1145,7 @@ pkg_dprintf(int fd, const char *fmt, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1164,7 +1169,7 @@ pkg_snprintf(char *str, size_t size, const char *fmt, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1189,8 +1194,8 @@ pkg_asprintf(char **ret, const char *fmt, const struct pkg *pkg)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|