diff --git a/Makefile b/Makefile index efeb138de..6bedab14a 100644 --- a/Makefile +++ b/Makefile @@ -50,7 +50,7 @@ CFLAGS += -Wall -Werror -fdiagnostics-color=auto LDFLAGS += -L$(BUILDDIR) # Some tools -PKGCONFIG := PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$(PKG_CONFIG_PATH) pkg-config +PKGCONFIG := PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:/usr/lib/pkgconfig:$(PKG_CONFIG_PATH) pkg-config SHELL := bash # We must compile without optimizations for gcov! diff --git a/lib/log_table.c b/lib/log_table.c index 509368bbb..446105fef 100644 --- a/lib/log_table.c +++ b/lib/log_table.c @@ -102,9 +102,9 @@ void table_header(struct table *t) free(col); } - stats(line0); - stats(line1); - stats(line2); + stats("%s", line0); + stats("%s", line1); + stats("%s", line2); free(line0); free(line1); @@ -142,7 +142,7 @@ void table_row(struct table *t, ...) va_end(args); - stats(line); + stats("%s", line); free(line); } @@ -165,6 +165,6 @@ void table_footer(struct table *t) strcatf(&line, "%s", BOX_ULR); } - stats(line); + stats("%s", line); free(line); -} \ No newline at end of file +} diff --git a/lib/nodes/ngsi.c b/lib/nodes/ngsi.c index e642c7f27..77bc27894 100644 --- a/lib/nodes/ngsi.c +++ b/lib/nodes/ngsi.c @@ -241,7 +241,7 @@ static int ngsi_parse_mapping(struct list *mapping, config_setting_t *cfg) .name = "index", .type = "integer" }; - asprintf(&i.value, "%u", j); + assert(asprintf(&i.value, "%u", j)); list_push(&a->metadata, memdup(&s, sizeof(s))); list_push(&a->metadata, memdup(&i, sizeof(i)));