From df7d960b0d7e1f9bd8aa58654760e41b6282f78a Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 5 May 2019 15:46:55 -0400 Subject: bftw: Pass a const struct BFTW * to the callback --- printf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'printf.h') diff --git a/printf.h b/printf.h index d62770e..3bbbcd2 100644 --- a/printf.h +++ b/printf.h @@ -54,7 +54,7 @@ struct bfs_printf *parse_bfs_printf(const char *format, struct cmdline *cmdline) * must be non-NULL. * @return 0 on success, -1 on failure. */ -int bfs_printf(FILE *file, const struct bfs_printf *command, struct BFTW *ftwbuf); +int bfs_printf(FILE *file, const struct bfs_printf *command, const struct BFTW *ftwbuf); /** * Free a parsed format string. -- cgit v1.2.3