aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-05-29 15:25:40 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-05-29 15:25:40 -0700
commitedeedaeee717513814967046cb6934819a62b1ad (patch)
tree317ec5e9d8f9cb984fa16d118e096d24cb1774a7
parent6b0b2fb1cfd143cbd13bcf8e1700c5d1537c4034 (diff)
downloadsyslinux.git-edeedaeee717513814967046cb6934819a62b1ad.tar.gz
syslinux.git-edeedaeee717513814967046cb6934819a62b1ad.tar.xz
syslinux.git-edeedaeee717513814967046cb6934819a62b1ad.zip
Add back spaces around ellipses in case statements
GNU C allows the ellipsis (...) to be used in case statements to indicate a range. However, it requires spaces around it to be valid. Nindent stripped those off, put them back. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--com32/lib/sys/ansi.c6
-rw-r--r--com32/lib/vsscanf.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/com32/lib/sys/ansi.c b/com32/lib/sys/ansi.c
index a11a7159..7d580856 100644
--- a/com32/lib/sys/ansi.c
+++ b/com32/lib/sys/ansi.c
@@ -77,7 +77,7 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch)
switch (st->state) {
case st_init:
switch (ch) {
- case 1...5:
+ case 1 ... 5:
st->state = st_tbl;
st->parms[0] = ch;
break;
@@ -339,7 +339,7 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch)
case 27:
st->reverse = 0;
break;
- case 30...37:
+ case 30 ... 37:
st->fg = ansi2pc[a - 30];
break;
case 38:
@@ -350,7 +350,7 @@ void __ansi_putchar(const struct term_info *ti, uint8_t ch)
st->fg = 7;
st->underline = 0;
break;
- case 40...47:
+ case 40 ... 47:
st->bg = ansi2pc[a - 40];
break;
case 49:
diff --git a/com32/lib/vsscanf.c b/com32/lib/vsscanf.c
index 3c016dbc..153dbbdd 100644
--- a/com32/lib/vsscanf.c
+++ b/com32/lib/vsscanf.c
@@ -116,7 +116,7 @@ int vsscanf(const char *buffer, const char *format, va_list ap)
case '*':
flags |= FL_SPLAT;
break;
- case '0'...'9':
+ case '0' ... '9':
width = (ch - '0');
state = st_width;
flags |= FL_WIDTH;