1 From: Ralf Jung <post@ralfj.de>
2 Date: Thu, 13 Sep 2012 18:36:54 +0200
3 Subject: Fix compilation with -Werror=format-security, use CPPFLAGS
9 3 files changed, 4 insertions(+), 4 deletions(-)
11 diff --git a/Makefile b/Makefile
12 index 8111c9b..8d8fe87 100644
16 # DESTDIR is completely respected
19 -CFLAGS := -Wall $(CFLAGS)
20 +CFLAGS := -Wall $(CFLAGS) $(CPPFLAGS)
21 XLDFLAGS := $(LDFLAGS)
22 LDFLAGS := -L. -lossp $(LDFLAGS)
24 diff --git a/ossp-slave.c b/ossp-slave.c
25 index 4c5cb2d..a290636 100644
28 @@ -89,7 +89,7 @@ void ossp_slave_init(int argc, char **argv)
31 if (!have_uid || !have_gid || ossp_cmd_fd < 0 || ossp_notify_fd < 0) {
32 - fprintf(stderr, usage);
33 + fputs(usage, stderr);
37 @@ -105,7 +105,7 @@ void ossp_slave_init(int argc, char **argv)
40 if (!mmap_off || !mmap_size) {
41 - fprintf(stderr, usage);
42 + fputs(usage, stderr);
46 diff --git a/osspd.c b/osspd.c
47 index 37c9b35..1dbe586 100644
50 @@ -2109,7 +2109,7 @@ static int process_arg(void *data, const char *arg, int key,
54 - fprintf(stderr, usage);
55 + fputs(usage, stderr);