From: Junio C Hamano Date: Sun, 16 Sep 2012 05:50:09 +0000 (-0700) Subject: ident.c: mark private file-scope symbols as static X-Git-Tag: v1.8.0-rc0~35^2~1 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=dad148c35975923c7a13058c20e01bb587ace4ef;p=git.git ident.c: mark private file-scope symbols as static Signed-off-by: Junio C Hamano --- diff --git a/cache.h b/cache.h index bfa7189fe..a58df84bd 100644 --- a/cache.h +++ b/cache.h @@ -901,9 +901,7 @@ extern const char *git_author_info(int); extern const char *git_committer_info(int); extern const char *fmt_ident(const char *name, const char *email, const char *date_str, int); extern const char *fmt_name(const char *name, const char *email); -extern const char *ident_default_name(void); extern const char *ident_default_email(void); -extern const char *ident_default_date(void); extern const char *git_editor(void); extern const char *git_pager(int stdout_is_tty); extern int git_ident_config(const char *, const char *, void *); diff --git a/ident.c b/ident.c index 484e0a980..a4bf206e2 100644 --- a/ident.c +++ b/ident.c @@ -93,7 +93,7 @@ static void copy_email(const struct passwd *pw, struct strbuf *email) add_domainname(email); } -const char *ident_default_name(void) +static const char *ident_default_name(void) { if (!git_default_name.len) { copy_gecos(xgetpwuid_self(), &git_default_name); @@ -117,7 +117,7 @@ const char *ident_default_email(void) return git_default_email.buf; } -const char *ident_default_date(void) +static const char *ident_default_date(void) { if (!git_default_date[0]) datestamp(git_default_date, sizeof(git_default_date));