find/pred.c | 2 +- xargs/xargs.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/find/pred.c b/find/pred.c index 7df37b1..cb61ed2 100644 --- a/find/pred.c +++ b/find/pred.c @@ -2045,7 +2045,7 @@ launch (struct buildcmd_control *ctl, void *usercontext, int argc, char **argv) } } - if (bc_args_exceed_testing_limit (argv)) + if (bc_args_exceed_testing_limit ((const char **) argv)) errno = E2BIG; else execvp (argv[0], argv); diff --git a/xargs/xargs.c b/xargs/xargs.c index 4954256..bf48af5 100644 --- a/xargs/xargs.c +++ b/xargs/xargs.c @@ -1117,7 +1117,7 @@ xargs_do_exec (struct buildcmd_control *ctl, void *usercontext, int argc, char * prep_child_for_exec (); - if (bc_args_exceed_testing_limit (argv)) + if (bc_args_exceed_testing_limit ((const char **) argv)) errno = E2BIG; else execvp (argv[0], argv); @@ -1135,7 +1135,8 @@ xargs_do_exec (struct buildcmd_control *ctl, void *usercontext, int argc, char * * utility if we run it, for POSIX compliance on the * handling of exit values. */ - write (fd[1], &errno, sizeof (int)); + int sink = write (fd[1], &errno, sizeof (int)); + (void) sink; } close (fd[1]);