always cast to (long) before printing out an `off_t'

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1674 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-05-07 02:20:56 +00:00
parent a025a4b72e
commit 2a4375828c
2 changed files with 8 additions and 5 deletions

View File

@@ -671,7 +671,8 @@ rcmd
{
fromname = (char *) 0;
restart_point = $3; /* XXX $3 is only "int" */
reply(350, "Restarting at %ld. %s", restart_point,
reply(350, "Restarting at %ld. %s",
(long)restart_point,
"Send STORE or RETRIEVE to initiate transfer.");
}
;

View File

@@ -225,7 +225,7 @@ char proctitle[BUFSIZ]; /* initial part of title */
*(file) == '/' ? "" : curdir(), file); \
else \
syslog(LOG_INFO, "%s %s%s = %ld bytes", \
cmd, (*(file) == '/') ? "" : curdir(), file, cnt); \
cmd, (*(file) == '/') ? "" : curdir(), file, (long)cnt); \
}
static void ack (char *);
@@ -1789,9 +1789,11 @@ myoob(int signo)
if (strcmp(cp, "STAT\r\n") == 0) {
if (file_size != (off_t) -1)
reply(213, "Status: %ld of %ld bytes transferred",
byte_count, file_size);
(long)byte_count,
(long)file_size);
else
reply(213, "Status: %ld bytes transferred", byte_count);
reply(213, "Status: %ld bytes transferred"
(long)byte_count);
}
#endif
}