tmpfile: several minor coding style fixes
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 9 Jun 2021 04:30:16 +0000 (13:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 9 Jun 2021 04:30:19 +0000 (13:30 +0900)
commit21e43a7c51ff5bc560e67e95f24fc1589d4e02a2
treee0f87d1fcec32e285ba9163ac81813fd0ca62818
parent045d7232b5a551b9b65b458281bc920cde157f6f
tmpfile: several minor coding style fixes

This makes the followings:
- reduces scope of variables,
- drop unnecessary 'else'
- use CLOSE_AND_REPLACE() macro
- use strnull() for possible NULL string
src/tmpfiles/tmpfiles.c