From: Junio C Hamano Date: Tue, 12 Jan 2010 07:52:47 +0000 (-0800) Subject: date.c: mark file-local function static X-Git-Tag: v1.7.0-rc0~77^2 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=23418ea95f83177df19bfe18af33650b87ec2a8a;p=git.git date.c: mark file-local function static Signed-off-by: Junio C Hamano --- diff --git a/date.c b/date.c index 5d05ef61c..45f3684ce 100644 --- a/date.c +++ b/date.c @@ -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 5c596875c..85dea123a 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) {