summaryrefslogtreecommitdiffabout
path: root/cache.c
authorLars Hjemli <hjemli@gmail.com>2008-08-10 07:24:24 (UTC)
committer Lars Hjemli <hjemli@gmail.com>2008-09-01 20:39:00 (UTC)
commit2cecf839a06ce951db0d5d95abf79004eff33ca7 (patch) (side-by-side diff)
tree2b2617aa1ffa36913b0c7edede6792f782799b61 /cache.c
parent7fa088e99ad2c938ff296e649da33b0bcdd46f63 (diff)
downloadcgit-2cecf839a06ce951db0d5d95abf79004eff33ca7.zip
cgit-2cecf839a06ce951db0d5d95abf79004eff33ca7.tar.gz
cgit-2cecf839a06ce951db0d5d95abf79004eff33ca7.tar.bz2
cache.c: use %zd for off_t argument
Signed-off-by: Lars Hjemli <hjemli@gmail>
Diffstat (limited to 'cache.c') (more/less context) (ignore whitespace changes)
-rw-r--r--cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cache.c b/cache.c
index 9f02cf5..57068a1 100644
--- a/cache.c
+++ b/cache.c
@@ -413,13 +413,13 @@ int cache_ls(const char *path)
strcpy(name, ent->d_name);
if ((err = open_slot(&slot)) != 0) {
cache_log("[cgit] unable to open path %s: %s (%d)\n",
fullname, strerror(err), err);
continue;
}
- printf("%s %s %10lld %s\n",
+ printf("%s %s %10zd %s\n",
name,
sprintftime("%Y-%m-%d %H:%M:%S",
slot.cache_st.st_mtime),
slot.cache_st.st_size,
slot.buf);
close_slot(&slot);