diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-01-11 23:52:47 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-01-20 14:37:17 -0800 |
commit | 23418ea95f83177df19bfe18af33650b87ec2a8a (patch) | |
tree | 7440a2392870f75d4fb7b5810aa7ee37b3712c89 | |
parent | 837d395a5c0b98ab938d71db8e2b6b9f69ddcc4d (diff) | |
download | git-23418ea95f83177df19bfe18af33650b87ec2a8a.tar.gz |
date.c: mark file-local function static
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r-- | date.c | 2 | ||||
-rw-r--r-- | git-compat-util.h | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -9,7 +9,7 @@ /* * 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 5c596875c2..85dea123a4 100644 --- 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) { |