summaryrefslogtreecommitdiff
path: root/util-linux/fdformat.c
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2005-09-08 03:11:58 +0000
committerRob Landley <rob@landley.net>2005-09-08 03:11:58 +0000
commit658d2cf98616e377fdcf8cde380fec10d966a689 (patch)
treeded519582e91404e7439409ee62e6abe302f238c /util-linux/fdformat.c
parent02eb934b0f7120cfb783536d6b27f7e092fb991b (diff)
downloadbusybox-w32-658d2cf98616e377fdcf8cde380fec10d966a689.tar.gz
busybox-w32-658d2cf98616e377fdcf8cde380fec10d966a689.tar.bz2
busybox-w32-658d2cf98616e377fdcf8cde380fec10d966a689.zip
Tito sent in a few patches converting instances of CONFIG_FEATURE_CLEAN_UP to
ENABLE_FEATURE_CLEAN_UP.
Diffstat (limited to 'util-linux/fdformat.c')
-rw-r--r--util-linux/fdformat.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c
index bd4527581..768105159 100644
--- a/util-linux/fdformat.c
+++ b/util-linux/fdformat.c
@@ -147,14 +147,14 @@ int fdformat_main(int argc,char **argv)
147 /* There is no point in freeing blocks at the end of a program, because 147 /* There is no point in freeing blocks at the end of a program, because
148 all of the program's space is given back to the system when the process 148 all of the program's space is given back to the system when the process
149 terminates.*/ 149 terminates.*/
150#ifdef CONFIG_FEATURE_CLEAN_UP 150
151 free(data); 151 if (ENABLE_FEATURE_CLEAN_UP) free(data);
152#endif 152
153 print_and_flush("done\n", NULL); 153 print_and_flush("done\n", NULL);
154 } 154 }
155#ifdef CONFIG_FEATURE_CLEAN_UP 155
156 close(fd); 156 if (ENABLE_FEATURE_CLEAN_UP) close(fd);
157#endif 157
158 /* Don't bother closing. Exit does 158 /* Don't bother closing. Exit does
159 * that, so we can save a few bytes */ 159 * that, so we can save a few bytes */
160 return EXIT_SUCCESS; 160 return EXIT_SUCCESS;