git: cf325fda86ed - main - tftpd: type nit
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 18 Nov 2022 16:27:27 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=cf325fda86ed7b68faaac85e0afaa828f618d198
commit cf325fda86ed7b68faaac85e0afaa828f618d198
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2022-11-18 16:26:54 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2022-11-18 16:26:54 +0000
tftpd: type nit
Sponsored by: Klara, Inc.
---
libexec/tftpd/tftp-options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libexec/tftpd/tftp-options.c b/libexec/tftpd/tftp-options.c
index cc902c7d2110..01876b4750f9 100644
--- a/libexec/tftpd/tftp-options.c
+++ b/libexec/tftpd/tftp-options.c
@@ -147,7 +147,7 @@ option_tsize(int peer __unused, struct tftphdr *tp __unused, int mode,
return (0);
if (mode == RRQ)
- options_set_reply(OPT_TSIZE, "%ju", stbuf->st_size);
+ options_set_reply(OPT_TSIZE, "%ju", (uintmax_t)stbuf->st_size);
else
/* XXX Allows writes of all sizes. */
options_set_reply_equal_request(OPT_TSIZE);