summaryrefslogtreecommitdiffhomepage
path: root/scp.c
diff options
context:
space:
mode:
authorAnton Bershanskiy <45960703+bershanskiy@users.noreply.github.com>2021-08-19 18:40:58 +0300
committerGitHub <noreply@github.com>2021-08-19 23:40:58 +0800
commitdc016f900be7ada4f3e3753d16163097c210e424 (patch)
treee7a03da502d4612968c0178847b7247b09f8e5b2 /scp.c
parent4c8c879b387991eea22fa1e27b501d34420754c2 (diff)
Remove unused argument of do_cmd() in scp.c (#125)
Diffstat (limited to 'scp.c')
-rw-r--r--scp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/scp.c b/scp.c
index 7b8e7d2..72e04f8 100644
--- a/scp.c
+++ b/scp.c
@@ -185,7 +185,7 @@ arg_setup(char *host, char *remuser, char *cmd)
}
int
-do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc)
+do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout)
{
int pin[2], pout[2], reserved[2];
@@ -532,8 +532,7 @@ toremote(char *targ, int argc, char **argv)
bp = xmalloc(len);
(void) snprintf(bp, len, "%s -t %s", cmd, targ);
host = cleanhostname(thost);
- if (do_cmd(host, tuser, bp, &remin,
- &remout, argc) < 0)
+ if (do_cmd(host, tuser, bp, &remin, &remout) < 0)
exit(1);
if (response() < 0)
exit(1);
@@ -584,7 +583,7 @@ tolocal(int argc, char **argv)
len = strlen(src) + CMDNEEDS + 20;
bp = xmalloc(len);
(void) snprintf(bp, len, "%s -f %s", cmd, src);
- if (do_cmd(host, suser, bp, &remin, &remout, argc) < 0) {
+ if (do_cmd(host, suser, bp, &remin, &remout) < 0) {
(void) xfree(bp);
++errs;
continue;