projects
/
oweals
/
uhttpd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7352ec4
)
file: explicitely cast st_mtime to uint64_t when generating ETag
author
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Jan 2015 17:57:31 +0000
(18:57 +0100)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sun, 25 Jan 2015 17:57:31 +0000
(18:57 +0100)
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
file.c
patch
|
blob
|
history
diff --git
a/file.c
b/file.c
index 73e5a5f47b1d6d4312703dbddfc5ca96a1ccaa9b..c8833b6a55b4f3023cae4c7cb3e6cb98a7de71c8 100644
(file)
--- 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;
}