aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
Diffstat (limited to 'editors')
-rw-r--r--editors/sed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/editors/sed.c b/editors/sed.c
index ac3d8d463..a6544fd0d 100644
--- a/editors/sed.c
+++ b/editors/sed.c
@@ -120,7 +120,6 @@ struct sed_globals {
120} bbg; 120} bbg;
121 121
122 122
123void sed_free_and_close_stuff(void);
124#if ENABLE_FEATURE_CLEAN_UP 123#if ENABLE_FEATURE_CLEAN_UP
125static void sed_free_and_close_stuff(void) 124static void sed_free_and_close_stuff(void)
126{ 125{
@@ -156,6 +155,8 @@ static void sed_free_and_close_stuff(void)
156 while (bbg.current_input_file < bbg.input_file_count) 155 while (bbg.current_input_file < bbg.input_file_count)
157 fclose(bbg.input_file_list[bbg.current_input_file++]); 156 fclose(bbg.input_file_list[bbg.current_input_file++]);
158} 157}
158#else
159void sed_free_and_close_stuff(void);
159#endif 160#endif
160 161
161/* If something bad happens during -i operation, delete temp file */ 162/* If something bad happens during -i operation, delete temp file */