summaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-02 11:34:46 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-02 11:34:46 -0400
commit2199c8b55dcd34334ef71f12707e17704f1b3d10 (patch)
treeda3c847cde3e4e0ab458539515a462b3ca020bad /color.h
parent75377a9db6f9c4e00b9d39828d955ec4443f2ce2 (diff)
downloadbfs-2199c8b55dcd34334ef71f12707e17704f1b3d10.tar.xz
Print the root file/directory too.
Diffstat (limited to 'color.h')
-rw-r--r--color.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/color.h b/color.h
index 1432072..ad2b53c 100644
--- a/color.h
+++ b/color.h
@@ -13,7 +13,6 @@
#define BFS_COLOR_H
#include "bftw.h"
-#include <sys/stat.h>
/**
* A lookup table for colors.
@@ -36,10 +35,10 @@ color_table *parse_colors(char *ls_colors);
* The color table to use.
* @param fpath
* The file path to print.
- * @param sb
- * A stat() buffer for fpath.
+ * @param ftwbuf
+ * The bftw() data for fpath.
*/
-void pretty_print(const color_table *colors, const char *fpath, const struct stat *sb);
+void pretty_print(const color_table *colors, const char *fpath, const struct BFTW *ftwbuf);
/**
* Pretty-print an error.