diff options
author | Damien Miller <djm@mindrot.org> | 2003-11-17 21:18:23 +1100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2003-11-17 21:18:23 +1100 |
commit | f58b58ced10c2e9ae899f63d4e915ec9723cf5a1 (patch) | |
tree | a40f405796853a41d0da48a47c82a72d3be818fe /sftp-server.c | |
parent | 939cd38122a2fadf9e82c15239ac86ec4cd1baec (diff) |
- jakob@cvs.openbsd.org 2003/11/10 16:23:41
[bufaux.c bufaux.h cipher.c cipher.h hostfile.c hostfile.h key.c]
[key.h sftp-common.c sftp-common.h sftp-server.c sshconnect.c sshd.c]
[ssh-dss.c ssh-rsa.c uuencode.c uuencode.h]
constify. ok markus@ & djm@
Diffstat (limited to 'sftp-server.c')
-rw-r--r-- | sftp-server.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sftp-server.c b/sftp-server.c index 9166853ed..d528a1d6e 100644 --- a/sftp-server.c +++ b/sftp-server.c | |||
@@ -22,7 +22,7 @@ | |||
22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 22 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
23 | */ | 23 | */ |
24 | #include "includes.h" | 24 | #include "includes.h" |
25 | RCSID("$OpenBSD: sftp-server.c,v 1.43 2003/06/25 22:39:36 miod Exp $"); | 25 | RCSID("$OpenBSD: sftp-server.c,v 1.44 2003/11/10 16:23:41 jakob Exp $"); |
26 | 26 | ||
27 | #include "buffer.h" | 27 | #include "buffer.h" |
28 | #include "bufaux.h" | 28 | #include "bufaux.h" |
@@ -149,7 +149,7 @@ handle_init(void) | |||
149 | } | 149 | } |
150 | 150 | ||
151 | static int | 151 | static int |
152 | handle_new(int use, char *name, int fd, DIR *dirp) | 152 | handle_new(int use, const char *name, int fd, DIR *dirp) |
153 | { | 153 | { |
154 | int i; | 154 | int i; |
155 | 155 | ||
@@ -184,7 +184,7 @@ handle_to_string(int handle, char **stringp, int *hlenp) | |||
184 | } | 184 | } |
185 | 185 | ||
186 | static int | 186 | static int |
187 | handle_from_string(char *handle, u_int hlen) | 187 | handle_from_string(const char *handle, u_int hlen) |
188 | { | 188 | { |
189 | int val; | 189 | int val; |
190 | 190 | ||
@@ -298,7 +298,7 @@ send_status(u_int32_t id, u_int32_t error) | |||
298 | buffer_free(&msg); | 298 | buffer_free(&msg); |
299 | } | 299 | } |
300 | static void | 300 | static void |
301 | send_data_or_handle(char type, u_int32_t id, char *data, int dlen) | 301 | send_data_or_handle(char type, u_int32_t id, const char *data, int dlen) |
302 | { | 302 | { |
303 | Buffer msg; | 303 | Buffer msg; |
304 | 304 | ||
@@ -311,7 +311,7 @@ send_data_or_handle(char type, u_int32_t id, char *data, int dlen) | |||
311 | } | 311 | } |
312 | 312 | ||
313 | static void | 313 | static void |
314 | send_data(u_int32_t id, char *data, int dlen) | 314 | send_data(u_int32_t id, const char *data, int dlen) |
315 | { | 315 | { |
316 | TRACE("sent data id %u len %d", id, dlen); | 316 | TRACE("sent data id %u len %d", id, dlen); |
317 | send_data_or_handle(SSH2_FXP_DATA, id, data, dlen); | 317 | send_data_or_handle(SSH2_FXP_DATA, id, data, dlen); |
@@ -330,7 +330,7 @@ send_handle(u_int32_t id, int handle) | |||
330 | } | 330 | } |
331 | 331 | ||
332 | static void | 332 | static void |
333 | send_names(u_int32_t id, int count, Stat *stats) | 333 | send_names(u_int32_t id, int count, const Stat *stats) |
334 | { | 334 | { |
335 | Buffer msg; | 335 | Buffer msg; |
336 | int i; | 336 | int i; |
@@ -350,7 +350,7 @@ send_names(u_int32_t id, int count, Stat *stats) | |||
350 | } | 350 | } |
351 | 351 | ||
352 | static void | 352 | static void |
353 | send_attrib(u_int32_t id, Attrib *a) | 353 | send_attrib(u_int32_t id, const Attrib *a) |
354 | { | 354 | { |
355 | Buffer msg; | 355 | Buffer msg; |
356 | 356 | ||
@@ -567,7 +567,7 @@ process_fstat(void) | |||
567 | } | 567 | } |
568 | 568 | ||
569 | static struct timeval * | 569 | static struct timeval * |
570 | attrib_to_tv(Attrib *a) | 570 | attrib_to_tv(const Attrib *a) |
571 | { | 571 | { |
572 | static struct timeval tv[2]; | 572 | static struct timeval tv[2]; |
573 | 573 | ||