summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgi.c2
-rw-r--r--mandocdb.c7
2 files changed, 6 insertions, 3 deletions
diff --git a/cgi.c b/cgi.c
index 4e59b274..da9e408d 100644
--- a/cgi.c
+++ b/cgi.c
@@ -879,7 +879,7 @@ resp_format(const struct req *req, const char *file)
int fd;
int usepath;
- if (-1 == (fd = open(file, O_RDONLY, 0))) {
+ if (-1 == (fd = open(file, O_RDONLY))) {
puts("<p>You specified an invalid manual file.</p>");
return;
}
diff --git a/mandocdb.c b/mandocdb.c
index bc432070..afb61da6 100644
--- a/mandocdb.c
+++ b/mandocdb.c
@@ -532,6 +532,9 @@ out:
mpages_free();
ohash_delete(&mpages);
ohash_delete(&mlinks);
+#if DEBUG_MEMORY
+ mandoc_d_finish();
+#endif
return exitcode;
usage:
progname = getprogname();
@@ -2251,11 +2254,11 @@ dbwrite(struct dba *dba)
say(tfn, "&dba_write");
goto err;
}
- if ((fd1 = open(MANDOC_DB, O_RDONLY, 0)) == -1) {
+ if ((fd1 = open(MANDOC_DB, O_RDONLY)) == -1) {
say(MANDOC_DB, "&open");
goto err;
}
- if ((fd2 = open(tfn, O_RDONLY, 0)) == -1) {
+ if ((fd2 = open(tfn, O_RDONLY)) == -1) {
say(tfn, "&open");
goto err;
}