]> git.ipfire.org Git - thirdparty/FORT-validator.git/commit
Code review
authorAlberto Leiva Popper <ydahhrk@gmail.com>
Thu, 27 May 2021 22:04:36 +0000 (17:04 -0500)
committerAlberto Leiva Popper <ydahhrk@gmail.com>
Fri, 28 May 2021 00:31:07 +0000 (19:31 -0500)
commit99725b909b8ea82ba59ab589325efe5389713ace
treec71f198fed6d6df026fb9aee3cd33225d5a4dfd4
parent7870445a52a93e8385b9a702feb45820952e989f
Code review

1. (error) Fix the --work-offline flag.
   It has been unused since commit
   85478ff30ebc029abb0ded48de5b557f52a758e0.
2. (performance) Remove redundant fopen() and fclose() during
   valid_file_or_dir().
   If stat() is used instead of fstat(), there's no need to open and
   close the file.
   (Technically, it's no longer validating readabilty, but since the
   validator downloads the files, read permission errors should be
   extremely rare, and can be catched later.)
3. (fine) Remove return value from thread_pool_task_cb.
   This wasn't a problem, but the return value was meaningless, and
   no callers were using it.
src/common.c
src/config.c
src/config.h
src/delete_dir_daemon.c
src/http/http.c
src/object/tal.c
src/rrdp/rrdp_loader.c
src/rtr/rtr.c
src/thread/thread_pool.h
test/thread_pool_test.c