diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2021-09-12 21:32:26 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2021-10-09 12:19:28 -0400 |
commit | 6d537cb95878bcfa4803af8a42a55e74b463e5c8 (patch) | |
tree | 34a7c53ce2fc0afff6cdf1de10e3b7a01fbca07a /printf.h | |
parent | 5bf787a8a80152fbf0993fbdc345e25cc41afa7f (diff) | |
download | bfs-6d537cb95878bcfa4803af8a42a55e74b463e5c8.tar.xz |
printf: Take a CFILE, not a FILE
Diffstat (limited to 'printf.h')
-rw-r--r-- | printf.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -21,7 +21,7 @@ #ifndef BFS_PRINTF_H #define BFS_PRINTF_H -#include <stdio.h> +#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. |