summaryrefslogtreecommitdiffstats
path: root/printf.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2021-09-12 21:32:26 -0400
committerTavian Barnes <tavianator@tavianator.com>2021-10-09 12:19:28 -0400
commit6d537cb95878bcfa4803af8a42a55e74b463e5c8 (patch)
tree34a7c53ce2fc0afff6cdf1de10e3b7a01fbca07a /printf.h
parent5bf787a8a80152fbf0993fbdc345e25cc41afa7f (diff)
downloadbfs-6d537cb95878bcfa4803af8a42a55e74b463e5c8.tar.xz
printf: Take a CFILE, not a FILE
Diffstat (limited to 'printf.h')
-rw-r--r--printf.h8
1 files changed, 4 insertions, 4 deletions
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 <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.