=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/scp.c,v retrieving revision 1.255 retrieving revision 1.256 diff -u -r1.255 -r1.256 --- src/usr.bin/ssh/scp.c 2023/03/31 04:45:08 1.255 +++ src/usr.bin/ssh/scp.c 2023/03/31 05:56:36 1.256 @@ -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 @@ 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); }