1
1

Jussi Mononen pointed out we used an unsigned variable to store negative

values in, when a plain int is much better anyway since it matches the return
type.
Этот коммит содержится в:
Daniel Stenberg 2009-04-06 14:50:29 +00:00
родитель cb66b7b94f
Коммит e63cbd907f

Просмотреть файл

@ -1894,7 +1894,8 @@ static int sftp_rename(LIBSSH2_SFTP *sftp, const char *source_filename,
{ {
LIBSSH2_CHANNEL *channel = sftp->channel; LIBSSH2_CHANNEL *channel = sftp->channel;
LIBSSH2_SESSION *session = channel->session; LIBSSH2_SESSION *session = channel->session;
unsigned long data_len, retcode; unsigned long data_len;
int retcode;
ssize_t packet_len = ssize_t packet_len =
source_filename_len + dest_filename_len + 17 + (sftp->version >= source_filename_len + dest_filename_len + 17 + (sftp->version >=
5 ? 4 : 0); 5 ? 4 : 0);