diff options
Diffstat (limited to 'util-linux/fdformat.c')
-rw-r--r-- | util-linux/fdformat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/util-linux/fdformat.c b/util-linux/fdformat.c index 768105159..e7dd943bb 100644 --- a/util-linux/fdformat.c +++ b/util-linux/fdformat.c | |||
@@ -134,7 +134,7 @@ int fdformat_main(int argc,char **argv) | |||
134 | if((read_bytes = safe_read(fd,data,n))!= n ) { | 134 | if((read_bytes = safe_read(fd,data,n))!= n ) { |
135 | if(read_bytes < 0) { | 135 | if(read_bytes < 0) { |
136 | bb_perror_msg("Read: "); | 136 | bb_perror_msg("Read: "); |
137 | } | 137 | } |
138 | bb_error_msg_and_die("Problem reading cylinder %d, expected %d, read %d", cyl, n, read_bytes); | 138 | bb_error_msg_and_die("Problem reading cylinder %d, expected %d, read %d", cyl, n, read_bytes); |
139 | } | 139 | } |
140 | /* Check backwards so we don't need a counter */ | 140 | /* Check backwards so we don't need a counter */ |
@@ -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 | 150 | ||
151 | if (ENABLE_FEATURE_CLEAN_UP) free(data); | 151 | if (ENABLE_FEATURE_CLEAN_UP) free(data); |
152 | 152 | ||
153 | print_and_flush("done\n", NULL); | 153 | print_and_flush("done\n", NULL); |
154 | } | 154 | } |
155 | 155 | ||
156 | if (ENABLE_FEATURE_CLEAN_UP) close(fd); | 156 | if (ENABLE_FEATURE_CLEAN_UP) close(fd); |
157 | 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; |