summaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorDenis Vlasenko2007-07-21 15:08:09 +0000
committerDenis Vlasenko2007-07-21 15:08:09 +0000
commitb71c668c577f7780362f7ea632895c11e3760d66 (patch)
tree860ccf38cce8c5347ae2b714a22b82a1d7dba323 /editors
parent82bd9ee64546c4f6f60303f6356377ce6b695a06 (diff)
downloadbusybox-b71c668c577f7780362f7ea632895c11e3760d66.zip
busybox-b71c668c577f7780362f7ea632895c11e3760d66.tar.gz
style fix (stray space before ';')
Diffstat (limited to 'editors')
-rw-r--r--editors/diff.c4
-rw-r--r--editors/vi.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/editors/diff.c b/editors/diff.c
index ef39623..88f8b22 100644
--- a/editors/diff.c
+++ b/editors/diff.c
@@ -328,11 +328,11 @@ static void prune(void)
for (pref = 0; pref < len[0] && pref < len[1] &&
file[0][pref + 1].value == file[1][pref + 1].value; pref++)
- ;
+ continue;
for (suff = 0; suff < len[0] - pref && suff < len[1] - pref &&
file[0][len[0] - suff].value == file[1][len[1] - suff].value;
suff++)
- ;
+ continue;
for (j = 0; j < 2; j++) {
sfile[j] = file[j] + pref;
slen[j] = len[j] - pref - suff;
diff --git a/editors/vi.c b/editors/vi.c
index 97efe0c..c4f3a83 100644
--- a/editors/vi.c
+++ b/editors/vi.c
@@ -2800,7 +2800,7 @@ static void refresh(int full_screen)
format_line(buf, tp, li);
// skip to the end of the current text[] line
- while (tp < end && *tp++ != '\n') /*no-op*/ ;
+ while (tp < end && *tp++ != '\n') /*no-op*/;
// see if there are any changes between vitual screen and buf
changed = FALSE; // assume no change