Added another bunch of compiler warnings and fix code.

This commit is contained in:
Juan RP
2011-01-15 11:59:44 +01:00
parent d9001adbad
commit 6051eb29ab
8 changed files with 33 additions and 13 deletions

View File

@@ -35,7 +35,7 @@
#include <xbps_api.h>
#include "defs.h"
static void
static void __attribute__((noreturn))
usage(void)
{
fprintf(stderr,

View File

@@ -68,7 +68,8 @@ void
show_pkg_info(prop_dictionary_t dict)
{
prop_object_t obj;
char size[64], *sep;
const char *sep;
char size[64];
int rv = 0;
assert(dict != NULL);
@@ -132,7 +133,7 @@ show_pkg_info(prop_dictionary_t dict)
printf("Configuration files:\n");
sep = " ";
(void)xbps_callback_array_iter_in_dict(dict, "conf_files",
list_strings_sep_in_array, sep);
list_strings_sep_in_array, __UNCONST(sep));
printf("\n");
}