From: Ronnie Sahlberg Date: Wed, 14 May 2014 22:13:24 GMT Subject: [PATCH 25/31] refs.c: make close_ref static Message-ID: <1400105610-21194-26-git-send-email-sahlberg@google.com> In-Reply-To: <1400105610-21194-1-git-send-email-sahlberg@google.com> We no longer need to export close_ref. Make the function static. Signed-off-by: Ronnie Sahlberg --- refs.c | 2 +- refs.h | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/refs.c b/refs.c index 6933036..a430b22 100644 --- a/refs.c +++ b/refs.c @@ -2668,7 +2668,7 @@ int rename_ref(const char *oldrefname, const char *newrefname, const char *logms return 1; } -int close_ref(struct ref_lock *lock) +static int close_ref(struct ref_lock *lock) { if (close_lock_file(lock->lk)) return -1; diff --git a/refs.h b/refs.h index 47982ca..f211e13 100644 --- a/refs.h +++ b/refs.h @@ -139,9 +139,6 @@ extern struct ref_lock *lock_any_ref_for_update(const char *refname, const unsigned char *old_sha1, int flags, int *type_p); -/** Close the file descriptor owned by a lock and return the status */ -extern int close_ref(struct ref_lock *lock); - /** Close and commit the ref locked by the lock */ extern int commit_ref(struct ref_lock *lock); -- 2.0.0.rc3.506.g3739a35