summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Johannes Schindelin <johannes.schindelin@gmx.de>2016-07-17 12:59:57 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2016-07-18 11:35:00 -0700
commit1cd772cc4124e43b14231dcaeae8a5dddf4ffdb9 (patch)
treeb2c194259ff773b03bc5a3f3921a8d595aef63da /builtin
parentfsck_walk(): optionally name objects on the go (diff)
downloadtgif-1cd772cc4124e43b14231dcaeae8a5dddf4ffdb9.tar.xz
fsck: give the error function a chance to see the fsck_options
We will need this in the next commit, where fsck will be taught to optionally name the objects when reporting issues about them. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/fsck.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/fsck.c b/builtin/fsck.c
index 87df191e49..6c9d598853 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -82,7 +82,8 @@ static int objerror(struct object *obj, const char *err)
return -1;
}
-static int fsck_error_func(struct object *obj, int type, const char *message)
+static int fsck_error_func(struct fsck_options *o,
+ struct object *obj, int type, const char *message)
{
objreport(obj, (type == FSCK_WARN) ? "warning" : "error", message);
return (type == FSCK_WARN) ? 0 : 1;