From 4e38f139f92b8b3729f82c37f0904c2b77d3eb58 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sat, 21 Oct 2017 13:10:36 -0400 Subject: Report errors that occur when closing files Otherwise we miss write errors that occur when flushing the cache. --- expr.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'expr.h') diff --git a/expr.h b/expr.h index 0eba0da..c0e2b92 100644 --- a/expr.h +++ b/expr.h @@ -219,7 +219,9 @@ void dump_expr(CFILE *cfile, const struct expr *expr, bool verbose); /** * Free an expression tree. + * + * @return 0 if successful, -1 on error. */ -void free_expr(struct expr *expr); +int free_expr(struct expr *expr); #endif // EXPR_H -- cgit v1.2.3