From 6d537cb95878bcfa4803af8a42a55e74b463e5c8 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 12 Sep 2021 21:32:26 -0400 Subject: printf: Take a CFILE, not a FILE --- printf.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'printf.h') diff --git a/printf.h b/printf.h index 91cf187..eac97e6 100644 --- a/printf.h +++ b/printf.h @@ -21,7 +21,7 @@ #ifndef BFS_PRINTF_H #define BFS_PRINTF_H -#include +#include "color.h" struct BFTW; struct bfs_ctx; @@ -46,8 +46,8 @@ struct bfs_printf *bfs_printf_parse(const struct bfs_ctx *ctx, const char *forma /** * Evaluate a parsed format string. * - * @param file - * The FILE to print to. + * @param cfile + * The CFILE to print to. * @param format * The parsed printf format. * @param ftwbuf @@ -55,7 +55,7 @@ struct bfs_printf *bfs_printf_parse(const struct bfs_ctx *ctx, const char *forma * @return * 0 on success, -1 on failure. */ -int bfs_printf(FILE *file, const struct bfs_printf *format, const struct BFTW *ftwbuf); +int bfs_printf(CFILE *cfile, const struct bfs_printf *format, const struct BFTW *ftwbuf); /** * Free a parsed format string. -- cgit v1.2.3