summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2015-09-08 17:04:13 -0400
committerTavian Barnes <tavianator@tavianator.com>2015-09-08 17:11:39 -0400
commit72460c098f31c87deefc7daf9eeea3a4ad8224ab (patch)
tree6f5af25602bf0f8b84e8ecc54168e7d0f262064b /color.c
parent12b0b1f572cba2556722d282bb884a52269fe965 (diff)
downloadbfs-72460c098f31c87deefc7daf9eeea3a4ad8224ab.tar.xz
Implement -delete.
Related to #5.
Diffstat (limited to 'color.c')
-rw-r--r--color.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/color.c b/color.c
index d994d17..2928fe2 100644
--- a/color.c
+++ b/color.c
@@ -309,7 +309,7 @@ void pretty_print(const color_table *colors, const char *fpath, const struct BFT
fputs("\n", stdout);
}
-void print_error(const color_table *colors, const char *fpath, const struct BFTW *ftwbuf) {
+void print_error(const color_table *colors, const char *fpath, int error) {
const char *color = NULL;
if (colors) {
color = colors->orphan;
@@ -318,7 +318,7 @@ void print_error(const color_table *colors, const char *fpath, const struct BFTW
if (color) {
print_esc(color, stderr);
}
- fprintf(stderr, "Error at %s: %s\n", fpath, strerror(ftwbuf->error));
+ fprintf(stderr, "Error at %s: %s\n", fpath, strerror(error));
if (color) {
print_esc(colors->reset, stderr);
}