summaryrefslogtreecommitdiff
path: root/sftp-client.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp-client.c')
-rw-r--r--sftp-client.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/sftp-client.c b/sftp-client.c
index cf672e70d..9670a7660 100644
--- a/sftp-client.c
+++ b/sftp-client.c
@@ -29,7 +29,7 @@
29/* XXX: copy between two remote sites */ 29/* XXX: copy between two remote sites */
30 30
31#include "includes.h" 31#include "includes.h"
32RCSID("$OpenBSD: sftp-client.c,v 1.16 2001/04/05 10:42:52 markus Exp $"); 32RCSID("$OpenBSD: sftp-client.c,v 1.17 2001/06/23 15:12:20 itojun Exp $");
33 33
34#include "ssh.h" 34#include "ssh.h"
35#include "buffer.h" 35#include "buffer.h"
@@ -51,7 +51,7 @@ RCSID("$OpenBSD: sftp-client.c,v 1.16 2001/04/05 10:42:52 markus Exp $");
51/* Message ID */ 51/* Message ID */
52static u_int msg_id = 1; 52static u_int msg_id = 1;
53 53
54void 54static void
55send_msg(int fd, Buffer *m) 55send_msg(int fd, Buffer *m)
56{ 56{
57 int mlen = buffer_len(m); 57 int mlen = buffer_len(m);
@@ -70,7 +70,7 @@ send_msg(int fd, Buffer *m)
70 buffer_free(&oqueue); 70 buffer_free(&oqueue);
71} 71}
72 72
73void 73static void
74get_msg(int fd, Buffer *m) 74get_msg(int fd, Buffer *m)
75{ 75{
76 u_int len, msg_len; 76 u_int len, msg_len;
@@ -98,7 +98,7 @@ get_msg(int fd, Buffer *m)
98 } 98 }
99} 99}
100 100
101void 101static void
102send_string_request(int fd, u_int id, u_int code, char *s, 102send_string_request(int fd, u_int id, u_int code, char *s,
103 u_int len) 103 u_int len)
104{ 104{
@@ -113,7 +113,7 @@ send_string_request(int fd, u_int id, u_int code, char *s,
113 buffer_free(&msg); 113 buffer_free(&msg);
114} 114}
115 115
116void 116static void
117send_string_attrs_request(int fd, u_int id, u_int code, char *s, 117send_string_attrs_request(int fd, u_int id, u_int code, char *s,
118 u_int len, Attrib *a) 118 u_int len, Attrib *a)
119{ 119{
@@ -129,7 +129,7 @@ send_string_attrs_request(int fd, u_int id, u_int code, char *s,
129 buffer_free(&msg); 129 buffer_free(&msg);
130} 130}
131 131
132u_int 132static u_int
133get_status(int fd, int expected_id) 133get_status(int fd, int expected_id)
134{ 134{
135 Buffer msg; 135 Buffer msg;
@@ -154,7 +154,7 @@ get_status(int fd, int expected_id)
154 return(status); 154 return(status);
155} 155}
156 156
157char * 157static char *
158get_handle(int fd, u_int expected_id, u_int *len) 158get_handle(int fd, u_int expected_id, u_int *len)
159{ 159{
160 Buffer msg; 160 Buffer msg;
@@ -183,7 +183,7 @@ get_handle(int fd, u_int expected_id, u_int *len)
183 return(handle); 183 return(handle);
184} 184}
185 185
186Attrib * 186static Attrib *
187get_decode_stat(int fd, u_int expected_id, int quiet) 187get_decode_stat(int fd, u_int expected_id, int quiet)
188{ 188{
189 Buffer msg; 189 Buffer msg;
@@ -283,7 +283,7 @@ do_close(int fd_in, int fd_out, char *handle, u_int handle_len)
283} 283}
284 284
285 285
286int 286static int
287do_lsreaddir(int fd_in, int fd_out, char *path, int printflag, 287do_lsreaddir(int fd_in, int fd_out, char *path, int printflag,
288 SFTP_DIRENT ***dir) 288 SFTP_DIRENT ***dir)
289{ 289{