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
8 2 files changed, 3 insertions(+), 3 deletions(-)
10 diff --git a/ossp-slave.c b/ossp-slave.c
11 index 4c5cb2d..a290636 100644
14 @@ -89,7 +89,7 @@ void ossp_slave_init(int argc, char **argv)
17 if (!have_uid || !have_gid || ossp_cmd_fd < 0 || ossp_notify_fd < 0) {
18 - fprintf(stderr, usage);
19 + fputs(usage, stderr);
23 @@ -105,7 +105,7 @@ void ossp_slave_init(int argc, char **argv)
26 if (!mmap_off || !mmap_size) {
27 - fprintf(stderr, usage);
28 + fputs(usage, stderr);
32 diff --git a/osspd.c b/osspd.c
33 index 37c9b35..1dbe586 100644
36 @@ -2109,7 +2109,7 @@ static int process_arg(void *data, const char *arg, int key,
40 - fprintf(stderr, usage);
41 + fputs(usage, stderr);