summaryrefslogtreecommitdiff
path: root/sftp-server.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2005-11-25 14:44:55 +1100
committerDarren Tucker <dtucker@zip.com.au>2005-11-25 14:44:55 +1100
commite0be30426a18f3c8038f98cdb10171200b134d60 (patch)
tree6a078ac74ced083794f251a58d9a181a3e504179 /sftp-server.c
parent58e298d11b8752062c21b693126e4206458bdad8 (diff)
- (dtucker) [progressmeter.c scp.c sftp-server.c] Use correct casts for
snprintf formats, fixes warnings on some 64 bit platforms. Patch from shaw at vranix.com, ok djm@
Diffstat (limited to 'sftp-server.c')
-rw-r--r--sftp-server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sftp-server.c b/sftp-server.c
index e7d000cff..4fa07e2f5 100644
--- a/sftp-server.c
+++ b/sftp-server.c
@@ -428,7 +428,7 @@ process_read(void)
428 len = get_int(); 428 len = get_int();
429 429
430 TRACE("read id %u handle %d off %llu len %d", id, handle, 430 TRACE("read id %u handle %d off %llu len %d", id, handle,
431 (u_int64_t)off, len); 431 (unsigned long long)off, len);
432 if (len > sizeof buf) { 432 if (len > sizeof buf) {
433 len = sizeof buf; 433 len = sizeof buf;
434 logit("read change len %d", len); 434 logit("read change len %d", len);
@@ -469,7 +469,7 @@ process_write(void)
469 data = get_string(&len); 469 data = get_string(&len);
470 470
471 TRACE("write id %u handle %d off %llu len %d", id, handle, 471 TRACE("write id %u handle %d off %llu len %d", id, handle,
472 (u_int64_t)off, len); 472 (unsigned long long)off, len);
473 fd = handle_to_fd(handle); 473 fd = handle_to_fd(handle);
474 if (fd >= 0) { 474 if (fd >= 0) {
475 if (lseek(fd, off, SEEK_SET) < 0) { 475 if (lseek(fd, off, SEEK_SET) < 0) {