This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository entice.
View the commit online.
commit 6b8d46979fff7e01c97e3614a4cc010a2c50c979
Author: Vincent Torri <vto...@outlook.fr>
AuthorDate: Sat Dec 7 11:53:38 2024 +0100
Fix #25
---
src/bin/entice_thumb.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/bin/entice_thumb.c b/src/bin/entice_thumb.c
index a00e371..4274743 100644
--- a/src/bin/entice_thumb.c
+++ b/src/bin/entice_thumb.c
@@ -99,8 +99,8 @@ entice_thumb_sha1(const char *file, unsigned char dst[20])
(unsigned long long)(last_write.QuadPart));
#else
# ifdef STAT_NSEC
-# define STAT_NSEC_MTIME(st) (unsigned long long)((st)->st_mtimensec)
-# define STAT_NSEC_CTIME(st) (unsigned long long)((st)->st_ctimensec)
+# define STAT_NSEC_MTIME(st) (unsigned long long)((st).st_mtimensec)
+# define STAT_NSEC_CTIME(st) (unsigned long long)((st).st_ctimensec)
# else
# define STAT_NSEC_MTIME(st) (unsigned long long)(0)
# define STAT_NSEC_CTIME(st) (unsigned long long)(0)
@@ -112,12 +112,12 @@ entice_thumb_sha1(const char *file, unsigned char dst[20])
snprintf(buf, sizeof(buf),
"%llu %llu %llu %llu %llu %llu %llu %llu",
- (unsigned long long)(st->st_mode),
- (unsigned long long)(st->st_uid),
- (unsigned long long)(st->st_gid),
- (unsigned long long)(st->st_size),
- (unsigned long long)(st->st_mtime),
- (unsigned long long)(st->st_ctime),
+ (unsigned long long)(st.st_mode),
+ (unsigned long long)(st.st_uid),
+ (unsigned long long)(st.st_gid),
+ (unsigned long long)(st.st_size),
+ (unsigned long long)(st.st_mtime),
+ (unsigned long long)(st.st_ctime),
STAT_NSEC_MTIME(st),
STAT_NSEC_CTIME(st));
#endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.