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;
|
fromname = (char *) 0;
|
||||||
restart_point = $3; /* XXX $3 is only "int" */
|
restart_point = $3; /* XXX $3 is only "int" */
|
||||||
reply(350, "Restarting at %ld. %s", restart_point,
|
reply(350, "Restarting at %ld. %s",
|
||||||
"Send STORE or RETRIEVE to initiate transfer.");
|
(long)restart_point,
|
||||||
|
"Send STORE or RETRIEVE to initiate transfer.");
|
||||||
}
|
}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@@ -225,7 +225,7 @@ char proctitle[BUFSIZ]; /* initial part of title */
|
|||||||
*(file) == '/' ? "" : curdir(), file); \
|
*(file) == '/' ? "" : curdir(), file); \
|
||||||
else \
|
else \
|
||||||
syslog(LOG_INFO, "%s %s%s = %ld bytes", \
|
syslog(LOG_INFO, "%s %s%s = %ld bytes", \
|
||||||
cmd, (*(file) == '/') ? "" : curdir(), file, cnt); \
|
cmd, (*(file) == '/') ? "" : curdir(), file, (long)cnt); \
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ack (char *);
|
static void ack (char *);
|
||||||
@@ -1789,9 +1789,11 @@ myoob(int signo)
|
|||||||
if (strcmp(cp, "STAT\r\n") == 0) {
|
if (strcmp(cp, "STAT\r\n") == 0) {
|
||||||
if (file_size != (off_t) -1)
|
if (file_size != (off_t) -1)
|
||||||
reply(213, "Status: %ld of %ld bytes transferred",
|
reply(213, "Status: %ld of %ld bytes transferred",
|
||||||
byte_count, file_size);
|
(long)byte_count,
|
||||||
|
(long)file_size);
|
||||||
else
|
else
|
||||||
reply(213, "Status: %ld bytes transferred", byte_count);
|
reply(213, "Status: %ld bytes transferred"
|
||||||
|
(long)byte_count);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user