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. --- cmdline.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmdline.h') diff --git a/cmdline.h b/cmdline.h index a1dadc3..9a46f7f 100644 --- a/cmdline.h +++ b/cmdline.h @@ -117,7 +117,9 @@ int eval_cmdline(const struct cmdline *cmdline); /** * Free the parsed command line. + * + * @return 0 if successful, -1 on error. */ -void free_cmdline(struct cmdline *cmdline); +int free_cmdline(struct cmdline *cmdline); #endif // CMDLINE_H -- cgit v1.2.3