summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-int.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-04-15 08:43:48 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-04-15 08:43:48 +0000
commit6585ea45efd718a3ce89e9bd9596a892824f65c8 (patch)
treec0701b7aace45c1d8fff73727934f82e4310828b /usr.bin/ssh/sftp-int.c
parenteec6fc2cdaf9318e5cd310cf0863d77276d49d0a (diff)
some unused variable and typos; from tomh@po.crl.go.jp
Diffstat (limited to 'usr.bin/ssh/sftp-int.c')
-rw-r--r--usr.bin/ssh/sftp-int.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c
index 2584c818f8a..3a71daac4cb 100644
--- a/usr.bin/ssh/sftp-int.c
+++ b/usr.bin/ssh/sftp-int.c
@@ -26,7 +26,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.35 2001/04/12 23:17:54 mouring Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.36 2001/04/15 08:43:46 markus Exp $");
#include <glob.h>
@@ -148,7 +148,7 @@ help(void)
void
local_do_shell(const char *args)
{
- int ret, status;
+ int status;
char *shell;
pid_t pid;
@@ -165,10 +165,10 @@ local_do_shell(const char *args)
/* XXX: child has pipe fds to ssh subproc open - issue? */
if (args) {
debug3("Executing %s -c \"%s\"", shell, args);
- ret = execl(shell, shell, "-c", args, NULL);
+ execl(shell, shell, "-c", args, NULL);
} else {
debug3("Executing %s", shell);
- ret = execl(shell, shell, NULL);
+ execl(shell, shell, NULL);
}
fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
strerror(errno));