summaryrefslogtreecommitdiff
path: root/clone-pack.c
diff options
context:
space:
mode:
authorTimo Sirainen <tss@iki.fi>2005-08-09 18:30:22 +0300
committerJunio C Hamano <junkio@cox.net>2005-08-09 22:28:19 -0700
commit4ec99bf080f2d95c7c3d706f65eea1c6b9302f23 (patch)
treed4645413f012a970eb7744004fe829aa2786a067 /clone-pack.c
parent96ad15ae2ff6416cf04c4c75a11783632cdc8fb4 (diff)
downloadgit-4ec99bf080f2d95c7c3d706f65eea1c6b9302f23.tar.gz
[PATCH] -Werror fixes
GCC's format __attribute__ is good for checking errors, especially with -Wformat=2 parameter. This fixes most of the reported problems against 2005-08-09 snapshot.
Diffstat (limited to 'clone-pack.c')
-rw-r--r--clone-pack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clone-pack.c b/clone-pack.c
index e9c20dee71..49820c6579 100644
--- a/clone-pack.c
+++ b/clone-pack.c
@@ -30,7 +30,7 @@ static int is_master(struct ref *ref)
static void write_one_ref(struct ref *ref)
{
- char *path = git_path(ref->name);
+ char *path = git_path("%s", ref->name);
int fd;
char *hex;