1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 03:52:49 -05:00

Cleanups to remove warnings for GNU/mingw32 compilation

[originally from svn r325]
This commit is contained in:
Simon Tatham
1999-11-22 10:07:24 +00:00
parent 55b8c21f0f
commit 8446532e4a
5 changed files with 16 additions and 9 deletions

6
scp.c
View File

@ -164,7 +164,7 @@ static void print_stats(char *name, unsigned long size, unsigned long done,
eta = size - done;
else
eta = (unsigned long) ((size - done) / ratebs);
sprintf(etastr, "%02d:%02d:%02d",
sprintf(etastr, "%02ld:%02ld:%02ld",
eta / 3600, (eta % 3600) / 60, eta % 60);
pct = (int) (100.0 * (float) done / size);
@ -457,7 +457,7 @@ static void sink(char *targ)
ssh_send("", 1);
return;
case 'T':
if (sscanf(buf, "T%d %*d %d %*d",
if (sscanf(buf, "T%ld %*d %ld %*d",
&mtime, &atime) == 2) {
settime = 1;
ssh_send("", 1);
@ -471,7 +471,7 @@ static void sink(char *targ)
bump("Protocol error: Expected control record");
}
if (sscanf(buf+1, "%u %u %[^\n]", &mode, &size, namebuf) != 3)
if (sscanf(buf+1, "%u %lu %[^\n]", &mode, &size, namebuf) != 3)
bump("Protocol error: Illegal file descriptor format");
if (targisdir) {
char t[2048];