summaryrefslogtreecommitdiff
path: root/scp.c
diff options
context:
space:
mode:
authordtucker@openbsd.org <dtucker@openbsd.org>2023-03-31 04:45:08 +0000
committerDarren Tucker <dtucker@dtucker.net>2023-03-31 16:17:46 +1100
commit6b73aa29035991d1448a1a76f63ac152a6bf931c (patch)
tree6c3f97e53c7357ffd4a80113877c12514056e237 /scp.c
parent6f0308a3e717ebe68eeb3f95253612fab5dbf20e (diff)
downloadopenssh-git-6b73aa29035991d1448a1a76f63ac152a6bf931c.tar.gz
upstream: Explictly ignore return codes
where we don't check them. OpenBSD-Commit-ID: 1ffb03038ba1b6b72667be50cf5e5e396b5f2740
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/scp.c b/scp.c
index 470b4f46..a2dea46f 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: scp.c,v 1.254 2023/03/27 03:25:08 djm Exp $ */
+/* $OpenBSD: scp.c,v 1.255 2023/03/31 04:45:08 dtucker Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -194,11 +194,11 @@ killchild(int signo)
{
if (do_cmd_pid > 1) {
kill(do_cmd_pid, signo ? signo : SIGTERM);
- waitpid(do_cmd_pid, NULL, 0);
+ (void)waitpid(do_cmd_pid, NULL, 0);
}
if (do_cmd_pid2 > 1) {
kill(do_cmd_pid2, signo ? signo : SIGTERM);
- waitpid(do_cmd_pid2, NULL, 0);
+ (void)waitpid(do_cmd_pid2, NULL, 0);
}
if (signo)