From: Jo-Philipp Wich Date: Sun, 25 Jan 2015 17:57:31 +0000 (+0100) Subject: file: explicitely cast st_mtime to uint64_t when generating ETag X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d404cd06b657cdcd97555362abec7966e339fd6d;p=oweals%2Fuhttpd.git file: explicitely cast st_mtime to uint64_t when generating ETag Signed-off-by: Jo-Philipp Wich --- diff --git a/file.c b/file.c index 73e5a5f..c8833b6 100644 --- a/file.c +++ b/file.c @@ -289,7 +289,7 @@ static const char * uh_file_mime_lookup(const char *path) static const char * uh_file_mktag(struct stat *s, char *buf, int len) { snprintf(buf, len, "\"%" PRIx64 "-%" PRIx64 "-%" PRIx64 "\"", - s->st_ino, s->st_size, s->st_mtime); + s->st_ino, s->st_size, (uint64_t)s->st_mtime); return buf; }