aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-07-04 04:26:55 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-07-04 04:26:55 +0200
commit243d1757d798a0cd43f51eb1db75cc1e81c65732 (patch)
tree09bad361c80d75a46afcdea52a3f5debb61b8b4d /editors
parentfd744519d1e848c4760c23805bf993396b19c8b2 (diff)
downloadbusybox-w32-243d1757d798a0cd43f51eb1db75cc1e81c65732.tar.gz
busybox-w32-243d1757d798a0cd43f51eb1db75cc1e81c65732.tar.bz2
busybox-w32-243d1757d798a0cd43f51eb1db75cc1e81c65732.zip
remove some dead assignments, add a TODO comment
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'editors')
-rw-r--r--editors/vi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/editors/vi.c b/editors/vi.c
index 9b050e115..0f412c362 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2385,7 +2385,6 @@ static int file_write(char *fn, char *first, char *last)
2385 status_line_bold("No current filename"); 2385 status_line_bold("No current filename");
2386 return -2; 2386 return -2;
2387 } 2387 }
2388 charcnt = 0;
2389 /* By popular request we do not open file with O_TRUNC, 2388 /* By popular request we do not open file with O_TRUNC,
2390 * but instead ftruncate() it _after_ successful write. 2389 * but instead ftruncate() it _after_ successful write.
2391 * Might reduce amount of data lost on power fail etc. 2390 * Might reduce amount of data lost on power fail etc.