summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 837d395)
raw | patch | inline | side by side (parent: 837d395)
author | Junio C Hamano <gitster@pobox.com> | |
Tue, 12 Jan 2010 07:52:47 +0000 (23:52 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 20 Jan 2010 22:37:17 +0000 (14:37 -0800) |
Signed-off-by: Junio C Hamano <gitster@pobox.com>
date.c | patch | blob | history | |
git-compat-util.h | patch | blob | history |
index 5d05ef61cfb140f004702a5ed614afa755c50670..45f3684ceee465170a520ecf5f25dcaa0e5ed84e 100644 (file)
--- a/date.c
+++ b/date.c
/*
* This is like mktime, but without normalization of tm_wday and tm_yday.
*/
-time_t tm_to_time_t(const struct tm *tm)
+static time_t tm_to_time_t(const struct tm *tm)
{
static const int mdays[] = {
0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334
diff --git a/git-compat-util.h b/git-compat-util.h
index 5c596875c2e78a92031915948444971126d91a78..85dea123a451aabb465235eb5446af991d091ee1 100644 (file)
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -198,7 +198,6 @@ extern void warning(const char *err, ...) __attribute__((format (printf, 1, 2)))
extern void set_die_routine(NORETURN_PTR void (*routine)(const char *err, va_list params));
extern int prefixcmp(const char *str, const char *prefix);
-extern time_t tm_to_time_t(const struct tm *tm);
static inline const char *skip_prefix(const char *str, const char *prefix)
{