1 From: Ralf Jung <post@ralfj.de>
2 Date: Sat, 15 Sep 2012 13:36:06 +0200
3 Subject: Fix compilation with -Werror=format-security
5 Forwarded: Committed upstream as 097dc7b6
9 2 files changed, 3 insertions(+), 3 deletions(-)
11 diff --git a/ossp-slave.c b/ossp-slave.c
12 index 4c5cb2d..a290636 100644
15 @@ -89,7 +89,7 @@ void ossp_slave_init(int argc, char **argv)
18 if (!have_uid || !have_gid || ossp_cmd_fd < 0 || ossp_notify_fd < 0) {
19 - fprintf(stderr, usage);
20 + fputs(usage, stderr);
24 @@ -105,7 +105,7 @@ void ossp_slave_init(int argc, char **argv)
27 if (!mmap_off || !mmap_size) {
28 - fprintf(stderr, usage);
29 + fputs(usage, stderr);
33 diff --git a/osspd.c b/osspd.c
34 index 37c9b35..1dbe586 100644
37 @@ -2109,7 +2109,7 @@ static int process_arg(void *data, const char *arg, int key,
41 - fprintf(stderr, usage);
42 + fputs(usage, stderr);