summaryrefslogtreecommitdiff
path: root/credential-store.c
diff options
context:
space:
mode:
authorMichael Haggerty <mhagger@alum.mit.edu>2015-08-10 11:47:38 +0200
committerJunio C Hamano <gitster@pobox.com>2015-08-10 12:57:14 -0700
commitc99a4c2db3053e4fb6a43870f5c747f858b0f58f (patch)
treeb481895c6cee3a3ddf964e4a7f06e1453ce9824d /credential-store.c
parente54c347c1c444c0f37b64b8735c50a66ee0527e9 (diff)
downloadgit-c99a4c2db3053e4fb6a43870f5c747f858b0f58f.tar.gz
lockfile: add accessors get_lock_file_fd() and get_lock_file_fp()
We are about to move those members, so change client code to read them through accessor functions. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential-store.c')
-rw-r--r--credential-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/credential-store.c b/credential-store.c
index f6925096ff..00aea3aa30 100644
--- a/credential-store.c
+++ b/credential-store.c
@@ -52,7 +52,7 @@ static void print_entry(struct credential *c)
static void print_line(struct strbuf *buf)
{
strbuf_addch(buf, '\n');
- write_or_die(credential_lock.fd, buf->buf, buf->len);
+ write_or_die(get_lock_file_fd(&credential_lock), buf->buf, buf->len);
}
static void rewrite_credential_file(const char *fn, struct credential *c,