From: dtucker Date: Fri, 31 Mar 2023 05:56:36 +0000 (+0000) Subject: Explicitly ignore return from waitpid here too. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0b75d217da152115b09e0a31deea3e1b8bc0bed9;p=openbsd Explicitly ignore return from waitpid here too. --- diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index 9b8995b40c9..5baab2e8781 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scp.c,v 1.255 2023/03/31 04:45:08 dtucker Exp $ */ +/* $OpenBSD: scp.c,v 1.256 2023/03/31 05:56:36 dtucker Exp $ */ /* * scp - secure remote copy. This is basically patched BSD rcp which * uses ssh to do the data transfer (instead of using rcmd). @@ -2182,8 +2182,8 @@ cleanup_exit(int i) if (remout2 > 0) close(remout2); if (do_cmd_pid > 0) - waitpid(do_cmd_pid, NULL, 0); + (void)waitpid(do_cmd_pid, NULL, 0); if (do_cmd_pid2 > 0) - waitpid(do_cmd_pid2, NULL, 0); + (void)waitpid(do_cmd_pid2, NULL, 0); exit(i); }