diff options
Diffstat (limited to 'util/expire.c')
-rw-r--r-- | util/expire.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/util/expire.c b/util/expire.c index 7268b64f..7acb735a 100644 --- a/util/expire.c +++ b/util/expire.c @@ -77,6 +77,7 @@ void expire(life_t *brd) total = state.st_size / sizeof(head); sprintf(tmpfile, "%s.new", index); unlink(tmpfile); + // TODO use fread/fwrite to reduce system calls if ((fdw = open(tmpfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) > 0) { while (read(fdr, &head, sizeof head) == sizeof head) |