summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-10-06 12:51:52 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-10-06 12:51:52 -0400
commit1312165d6501c02406b33eba8a3daf78e8938b9a (patch)
tree4e21eff1e828a09859c42a49e645aab31609cc63
parent98a3dd364739136329fe2b8f9cdeecf776fb17c9 (diff)
downloadbfs-1312165d6501c02406b33eba8a3daf78e8938b9a.tar.xz
ctx: Don't include color.h
-rw-r--r--ctx.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/ctx.h b/ctx.h
index ec626c5..ba9bca4 100644
--- a/ctx.h
+++ b/ctx.h
@@ -21,8 +21,8 @@
#ifndef BFS_CTX_H
#define BFS_CTX_H
+#include "bftw.h"
#include "trie.h"
-#include "color.h"
/**
* Various debugging flags.
@@ -87,9 +87,9 @@ struct bfs_ctx {
/** The error that occurred parsing the color table, if any. */
int colors_error;
/** Colored stdout. */
- CFILE *cout;
+ struct CFILE *cout;
/** Colored stderr. */
- CFILE *cerr;
+ struct CFILE *cerr;
/** User table. */
struct bfs_users *users;
@@ -157,7 +157,7 @@ const struct bfs_mtab *bfs_ctx_mtab(const struct bfs_ctx *ctx);
* @return
* The opened file, or NULL on failure.
*/
-CFILE *bfs_ctx_open(struct bfs_ctx *ctx, const char *path, bool use_color);
+struct CFILE *bfs_ctx_open(struct bfs_ctx *ctx, const char *path, bool use_color);
/**
* Dump the parsed command line.