Re: [PATCH 04/18] date.c: mark file-local function static
- From
Johannes Sixt <j.sixt@viscovery.net>
- Date
- Jan 12, 2010, 08:37 UTC
- Message-ID
- <4B4C34B3.3010508@viscovery.net>
- In-Reply-To
- <1263282781-25596-5-git-send-email-gitster@pobox.com>
Junio C Hamano schrieb:
Show 25 quoted lines
> diff --git a/date.c b/date.c
> index 5d05ef6..45f3684 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 5c59687..85dea12 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)
> {This one is used from compat/mingw.c for the gettimeofday emulation. Please leave it extern.
-- Hannes