summaryrefslogtreecommitdiffstats
path: root/cmdline.h
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-10-21 13:10:36 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-10-21 13:10:36 -0400
commit4e38f139f92b8b3729f82c37f0904c2b77d3eb58 (patch)
treea10f9de054cbcd2176be7666e56e0ae660bebf84 /cmdline.h
parent305f75468ead1f68aad3f3b5162f7437ad8dd732 (diff)
downloadbfs-4e38f139f92b8b3729f82c37f0904c2b77d3eb58.tar.xz
Report errors that occur when closing files
Otherwise we miss write errors that occur when flushing the cache.
Diffstat (limited to 'cmdline.h')
-rw-r--r--cmdline.h4
1 files changed, 3 insertions, 1 deletions
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