# HG changeset patch # User Anton Bershanskiy <45960703+bershanskiy@users.noreply.github.com> # Date 1629387658 -10800 # Node ID 401d7d8c8a79b816e57cfcd9606fc287ebf8ca8b # Parent fa6ff07dcc77c9272f88d791aa61b8c8dfbaf661 Remove unused argument of do_cmd() in scp.c (#125) diff -r fa6ff07dcc77 -r 401d7d8c8a79 scp.c --- a/scp.c Thu Aug 19 17:39:31 2021 +0200 +++ b/scp.c Thu Aug 19 18:40:58 2021 +0300 @@ -185,7 +185,7 @@ } 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 @@ 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 @@ 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;