summaryrefslogtreecommitdiff
path: root/sftp-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-int.c')
-rw-r--r--sftp-int.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sftp-int.c b/sftp-int.c
index aa3a8a02f..573fea1df 100644
--- a/sftp-int.c
+++ b/sftp-int.c
@@ -26,7 +26,7 @@
26/* XXX: recursive operations */ 26/* XXX: recursive operations */
27 27
28#include "includes.h" 28#include "includes.h"
29RCSID("$OpenBSD: sftp-int.c,v 1.37 2001/06/23 15:12:20 itojun Exp $"); 29RCSID("$OpenBSD: sftp-int.c,v 1.38 2001/07/09 07:04:53 deraadt Exp $");
30 30
31#include "buffer.h" 31#include "buffer.h"
32#include "xmalloc.h" 32#include "xmalloc.h"
@@ -163,10 +163,10 @@ local_do_shell(const char *args)
163 /* XXX: child has pipe fds to ssh subproc open - issue? */ 163 /* XXX: child has pipe fds to ssh subproc open - issue? */
164 if (args) { 164 if (args) {
165 debug3("Executing %s -c \"%s\"", shell, args); 165 debug3("Executing %s -c \"%s\"", shell, args);
166 execl(shell, shell, "-c", args, NULL); 166 execl(shell, shell, "-c", args, (char *)NULL);
167 } else { 167 } else {
168 debug3("Executing %s", shell); 168 debug3("Executing %s", shell);
169 execl(shell, shell, NULL); 169 execl(shell, shell, (char *)NULL);
170 } 170 }
171 fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell, 171 fprintf(stderr, "Couldn't execute \"%s\": %s\n", shell,
172 strerror(errno)); 172 strerror(errno));