summaryrefslogtreecommitdiffstats
path: root/libexec/ftpd/ftpcmd.y
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2004-07-31 14:22:02 +0000
committeryar <yar@FreeBSD.org>2004-07-31 14:22:02 +0000
commit634a2a6e4f60688d317d50500d9304c2cadd10be (patch)
treebaf7799555982ab2cc077cf43cae1f4d4c7af9d1 /libexec/ftpd/ftpcmd.y
parent7ef444d52780a97f48a99aaf3e972f85045cd862 (diff)
downloadFreeBSD-src-634a2a6e4f60688d317d50500d9304c2cadd10be.zip
FreeBSD-src-634a2a6e4f60688d317d50500d9304c2cadd10be.tar.gz
Printf(3) off_t values through conversion to intmax_t since
we've got <stdint.h> et al now. (This makes ftpd(8) WARNS=2 clean.)
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r--libexec/ftpd/ftpcmd.y9
1 files changed, 5 insertions, 4 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index b00dc01..bb8744b 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -64,6 +64,7 @@ static const char rcsid[] =
#include <netdb.h>
#include <pwd.h>
#include <signal.h>
+#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -786,8 +787,8 @@ rcmd
free(fromname);
fromname = (char *) 0;
restart_point = $4.o;
- reply(350, "Restarting at %llu. %s",
- restart_point,
+ reply(350, "Restarting at %jd. %s",
+ (intmax_t)restart_point,
"Send STORE or RETRIEVE to initiate transfer.");
}
}
@@ -1578,7 +1579,7 @@ sizecmd(char *filename)
else if (!S_ISREG(stbuf.st_mode))
reply(550, "%s: not a plain file.", filename);
else
- reply(213, "%qu", stbuf.st_size);
+ reply(213, "%jd", (intmax_t)stbuf.st_size);
break; }
case TYPE_A: {
FILE *fin;
@@ -1612,7 +1613,7 @@ sizecmd(char *filename)
}
(void) fclose(fin);
- reply(213, "%qd", count);
+ reply(213, "%jd", (intmax_t)count);
break; }
default:
reply(504, "SIZE not implemented for type %s.",
OpenPOWER on IntegriCloud