From f663bce545f77f09aaf098ab3c1eed276a7bc50e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 27 Apr 2010 17:40:14 +0100 Subject: [PATCH] compile with warnings; need to fix up many --- backends/Makefile | 2 +- backends/innduct.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/backends/Makefile b/backends/Makefile index e6365d3..6849a80 100644 --- a/backends/Makefile +++ b/backends/Makefile @@ -63,7 +63,7 @@ $(FIXSCRIPT): @echo Run configure before running make. See INSTALL for details. @exit 1 -innduct.o: CFLAGS += -Wimplicit -Wstrict-prototypes -Wmissing-prototypes +innduct.o: CFLAGS += -Wall -Wimplicit -Wstrict-prototypes -Wmissing-prototypes actsync: actsync.o $(LIBINN) ; $(LINK) actsync.o $(INNLIBS) archive: archive.o $(BOTH) ; $(LINK) archive.o $(STORELIBS) diff --git a/backends/innduct.c b/backends/innduct.c index 37241d4..4311dca 100644 --- a/backends/innduct.c +++ b/backends/innduct.c @@ -583,7 +583,7 @@ static void report_child_status(const char *what, int status) { if (WIFEXITED(status)) { int es= WEXITSTATUS(status); if (es) - warn("%s: child died with error exit status %d",es); + warn("%s: child died with error exit status %d", what, es); } else if (WIFSIGNALED(status)) { int sig= WTERMSIG(status); const char *sigstr= strsignal(sig); @@ -594,7 +594,7 @@ static void report_child_status(const char *what, int status) { warn("%s: child died due to unknown fatal signal %d%s", what, sig, coredump); } else { - warn("%s: child died with unknown wait status %d", status); + warn("%s: child died with unknown wait status %d", what,status); } } -- 2.30.2