diff options
Diffstat (limited to 'sftp-client.c')
-rw-r--r-- | sftp-client.c | 18 |
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" |
32 | RCSID("$OpenBSD: sftp-client.c,v 1.16 2001/04/05 10:42:52 markus Exp $"); | 32 | RCSID("$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 */ |
52 | static u_int msg_id = 1; | 52 | static u_int msg_id = 1; |
53 | 53 | ||
54 | void | 54 | static void |
55 | send_msg(int fd, Buffer *m) | 55 | send_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 | ||
73 | void | 73 | static void |
74 | get_msg(int fd, Buffer *m) | 74 | get_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 | ||
101 | void | 101 | static void |
102 | send_string_request(int fd, u_int id, u_int code, char *s, | 102 | send_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 | ||
116 | void | 116 | static void |
117 | send_string_attrs_request(int fd, u_int id, u_int code, char *s, | 117 | send_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 | ||
132 | u_int | 132 | static u_int |
133 | get_status(int fd, int expected_id) | 133 | get_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 | ||
157 | char * | 157 | static char * |
158 | get_handle(int fd, u_int expected_id, u_int *len) | 158 | get_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 | ||
186 | Attrib * | 186 | static Attrib * |
187 | get_decode_stat(int fd, u_int expected_id, int quiet) | 187 | get_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 | ||
286 | int | 286 | static int |
287 | do_lsreaddir(int fd_in, int fd_out, char *path, int printflag, | 287 | do_lsreaddir(int fd_in, int fd_out, char *path, int printflag, |
288 | SFTP_DIRENT ***dir) | 288 | SFTP_DIRENT ***dir) |
289 | { | 289 | { |