diff options
Diffstat (limited to 'sftp-client.c')
-rw-r--r-- | sftp-client.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sftp-client.c b/sftp-client.c index 10b7992d0..f6a73f379 100644 --- a/sftp-client.c +++ b/sftp-client.c | |||
@@ -28,9 +28,9 @@ | |||
28 | /* XXX: copy between two remote sites */ | 28 | /* XXX: copy between two remote sites */ |
29 | 29 | ||
30 | #include "includes.h" | 30 | #include "includes.h" |
31 | RCSID("$OpenBSD: sftp-client.c,v 1.33 2002/06/23 09:30:14 deraadt Exp $"); | 31 | RCSID("$OpenBSD: sftp-client.c,v 1.35 2002/09/11 22:41:49 djm Exp $"); |
32 | 32 | ||
33 | #include "openbsd-compat/fake-queue.h" | 33 | #include "openbsd-compat/sys-queue.h" |
34 | 34 | ||
35 | #include "buffer.h" | 35 | #include "buffer.h" |
36 | #include "bufaux.h" | 36 | #include "bufaux.h" |
@@ -415,12 +415,6 @@ do_lsreaddir(struct sftp_conn *conn, char *path, int printflag, | |||
415 | } | 415 | } |
416 | 416 | ||
417 | int | 417 | int |
418 | do_ls(struct sftp_conn *conn, char *path) | ||
419 | { | ||
420 | return(do_lsreaddir(conn, path, 1, NULL)); | ||
421 | } | ||
422 | |||
423 | int | ||
424 | do_readdir(struct sftp_conn *conn, char *path, SFTP_DIRENT ***dir) | 418 | do_readdir(struct sftp_conn *conn, char *path, SFTP_DIRENT ***dir) |
425 | { | 419 | { |
426 | return(do_lsreaddir(conn, path, 0, dir)); | 420 | return(do_lsreaddir(conn, path, 0, dir)); |
@@ -1095,7 +1089,7 @@ do_upload(struct sftp_conn *conn, char *local_path, char *remote_path, | |||
1095 | debug3("In write loop, ack for %u %u bytes at %llu", | 1089 | debug3("In write loop, ack for %u %u bytes at %llu", |
1096 | ack->id, ack->len, (unsigned long long)ack->offset); | 1090 | ack->id, ack->len, (unsigned long long)ack->offset); |
1097 | ++ackid; | 1091 | ++ackid; |
1098 | free(ack); | 1092 | xfree(ack); |
1099 | } | 1093 | } |
1100 | offset += len; | 1094 | offset += len; |
1101 | } | 1095 | } |