diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-05 14:55:26 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2009-06-05 14:55:26 +0200 |
commit | 53f17912120e2f8732443fbb91fcf2c87123eaa5 (patch) | |
tree | c7a40ebfe3b487e4b47dff48af69e084e5fa77e6 /util-linux/scriptreplay.c | |
parent | d5f1b1bbe0a881f66b6bb6951fa54e553002c24d (diff) |
*: reduce #ifdef forest
Remove unnecessary #if statements from the "more", "script", and
"scriptreplay" commands. Bloatcheck says 0 bytes changed.
Signed-off-by: Rob Landley <rob@landley.net>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'util-linux/scriptreplay.c')
-rw-r--r-- | util-linux/scriptreplay.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/scriptreplay.c b/util-linux/scriptreplay.c index 038dbdfe1..6474d38e8 100644 --- a/util-linux/scriptreplay.c +++ b/util-linux/scriptreplay.c @@ -30,9 +30,9 @@ int scriptreplay_main(int argc UNUSED_PARAM, char **argv) usleep(delay * factor); bb_copyfd_exact_size(fd, STDOUT_FILENO, count); } -#if ENABLE_FEATURE_CLEAN_UP - close(fd); - fclose(tfp); -#endif + if (ENABLE_FEATURE_CLEAN_UP) { + close(fd); + fclose(tfp); + } return EXIT_SUCCESS; } |