diff options
author | Timo Sirainen <tss@iki.fi> | 2005-08-09 18:30:22 +0300 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-08-09 22:28:19 -0700 |
commit | 4ec99bf080f2d95c7c3d706f65eea1c6b9302f23 (patch) | |
tree | d4645413f012a970eb7744004fe829aa2786a067 /apply.c | |
parent | 96ad15ae2ff6416cf04c4c75a11783632cdc8fb4 (diff) | |
download | git-4ec99bf080f2d95c7c3d706f65eea1c6b9302f23.tar.gz git-4ec99bf080f2d95c7c3d706f65eea1c6b9302f23.tar.xz |
[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 'apply.c')
-rw-r--r-- | apply.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -563,7 +563,7 @@ static int find_header(char *line, unsigned long size, int *hdrsize, struct patc struct fragment dummy; if (parse_fragment_header(line, len, &dummy) < 0) continue; - error("patch fragment without header at line %d: %.*s", linenr, len-1, line); + error("patch fragment without header at line %d: %.*s", linenr, (int)len-1, line); } if (size < len + 6) @@ -968,7 +968,7 @@ static int apply_fragments(struct buffer_desc *desc, struct patch *patch) while (frag) { if (apply_one_fragment(desc, frag) < 0) - return error("patch failed: %s:%d", patch->old_name, frag->oldpos); + return error("patch failed: %s:%ld", patch->old_name, frag->oldpos); frag = frag->next; } return 0; |