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:
@@ -671,8 +671,9 @@ rcmd
|
||||
{
|
||||
fromname = (char *) 0;
|
||||
restart_point = $3; /* XXX $3 is only "int" */
|
||||
reply(350, "Restarting at %ld. %s", restart_point,
|
||||
"Send STORE or RETRIEVE to initiate transfer.");
|
||||
reply(350, "Restarting at %ld. %s",
|
||||
(long)restart_point,
|
||||
"Send STORE or RETRIEVE to initiate transfer.");
|
||||
}
|
||||
;
|
||||
|
||||
|
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user