diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-25 18:57:31 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-01-25 18:57:31 +0100 |
commit | d404cd06b657cdcd97555362abec7966e339fd6d (patch) | |
tree | 36d5e942ad2cc3cc8f08b4e4a7c02d571ae207c5 | |
parent | 7352ec423fb99a7970b0765287503abee05a56cd (diff) |
file: explicitely cast st_mtime to uint64_t when generating ETag
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r-- | file.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |