summaryrefslogtreecommitdiff
path: root/util-linux/scriptreplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/scriptreplay.c')
-rw-r--r--util-linux/scriptreplay.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/scriptreplay.c b/util-linux/scriptreplay.c
index 038dbdf..6474d38 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;
}