Skip to content

Commit

Permalink
Merge PR #3: Fix compilation with -Werror=format-security
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebeatrici authored Aug 24, 2022
2 parents 25568fb + 4543a0b commit 3aa95b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ossp-slave.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void ossp_slave_init(int argc, char **argv)
}

if (!have_uid || !have_gid || ossp_cmd_fd < 0 || ossp_notify_fd < 0) {
fprintf(stderr, usage);
fputs(usage, stderr);
_exit(1);
}

Expand All @@ -101,7 +101,7 @@ void ossp_slave_init(int argc, char **argv)
void *p;

if (!mmap_size) {
fprintf(stderr, usage);
fputs(usage, stderr);
_exit(1);
}

Expand Down
2 changes: 1 addition & 1 deletion osspd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2279,7 +2279,7 @@ static int process_arg(void *data, const char *arg, int key,

switch (key) {
case 0:
fprintf(stderr, usage);
fputs(usage, stderr);
param->help = 1;
return 0;
case 1:
Expand Down

0 comments on commit 3aa95b5

Please sign in to comment.