fsck: introduce identifiers for fsck messages
[gitweb.git] / fsck.h
diff --git a/fsck.h b/fsck.h
index 07d0ab2fab6953c85d44826f11c76238bd8f6e99..f6f268aa72540a7cdc4e8efdb10b0fb61d6e2ca7 100644 (file)
--- a/fsck.h
+++ b/fsck.h
@@ -17,10 +17,9 @@ struct fsck_options;
 typedef int (*fsck_walk_func)(struct object *obj, int type, void *data, struct fsck_options *options);
 
 /* callback for fsck_object, type is FSCK_ERROR or FSCK_WARN */
-typedef int (*fsck_error)(struct object *obj, int type, const char *err, ...);
+typedef int (*fsck_error)(struct object *obj, int type, const char *message);
 
-__attribute__((format (printf, 3, 4)))
-int fsck_error_function(struct object *obj, int type, const char *fmt, ...);
+int fsck_error_function(struct object *obj, int type, const char *message);
 
 struct fsck_options {
        fsck_walk_func walk;