Commit 46540830 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

Fixed some C99-isms (instructions before variable declarations) in

sftp_put_file_init, sftp_get_file_init and sftp_get_mem_init.

Rev: src/sftp/sftp_c.c:1.4
parent 35dc8195
......@@ -591,10 +591,11 @@ sftp_get_mem_init(struct sftp_callback *state,
off_t startat)
{
UINT32 id;
sftp_null_state(state);
struct sftp_attrib a;
sftp_null_state( state ); /* Make sure these structures are "clean" */
sftp_clear_attrib( &a );
id = sftp_unique_id();
sftp_set_msg( out, SSH_FXP_OPEN );
......@@ -930,11 +931,12 @@ sftp_get_file_init(struct sftp_callback *state,
int openmode;
off_t startat = 0;
sftp_null_state(state);
struct sftp_mem mem;
int ret, fd;
int mask;
sftp_null_state( state ); /* Make sure state is "clean" */
/* FIXME: Should probably try to retain permissions from the other side */
openmode = O_CREAT | O_RDWR;
......@@ -1234,13 +1236,14 @@ sftp_put_file_init(struct sftp_callback *state,
off_t startat = cont;
off_t filesize = 0;
sftp_null_state(state);
struct sftp_mem mem;
struct stat st;
struct sftp_attrib a;
int ret;
int fd;
sftp_null_state( state ); /* Make sure state is "clean" */
state->last = SFTP_PUT_FILE_INIT;
ret = open( fname, O_RDONLY );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment