summaryrefslogtreecommitdiff
path: root/bundle.c
diff options
context:
space:
mode:
authorDaniel Lowe <dlowe@bitmuse.com>2008-11-10 16:07:52 -0500
committerJunio C Hamano <gitster@pobox.com>2008-11-11 14:43:59 -0800
commit9db56f71b91153f4076a796c80c61f00edd8b700 (patch)
treedc26e0cca76524884d612fdac3139accea58dbdb /bundle.c
parent989206f535dcd0f43356ad38e1d54cb833d96fc2 (diff)
downloadgit-9db56f71b91153f4076a796c80c61f00edd8b700.tar.gz
Fix non-literal format in printf-style calls
These were found using gcc 4.3.2-1ubuntu11 with the warning: warning: format not a string literal and no format arguments Incorporated suggestions from Brandon Casey <casey@nrlssc.navy.mil>. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'bundle.c')
-rw-r--r--bundle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bundle.c b/bundle.c
index 7d17a1fde1..daecd8e1ca 100644
--- a/bundle.c
+++ b/bundle.c
@@ -114,7 +114,7 @@ int verify_bundle(struct bundle_header *header, int verbose)
continue;
}
if (++ret == 1)
- error(message);
+ error("%s", message);
error("%s %s", sha1_to_hex(e->sha1), e->name);
}
if (revs.pending.nr != p->nr)
@@ -139,7 +139,7 @@ int verify_bundle(struct bundle_header *header, int verbose)
for (i = 0; i < req_nr; i++)
if (!(refs.objects[i].item->flags & SHOWN)) {
if (++ret == 1)
- error(message);
+ error("%s", message);
error("%s %s", sha1_to_hex(refs.objects[i].item->sha1),
refs.objects[i].name);
}