summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-11-20 09:54:21 -0800
committerH. Peter Anvin <hpa@zytor.com>2007-11-20 09:54:21 -0800
commit0188c20b01e4c5702108390eae6ea60a0af0a8e5 (patch)
treec202a0048e5ed57d40ef4b7a1c32b56a6d516e4a
parent13d1f3c509963d1bc40b8f418194acfa44d8aa5a (diff)
downloadsyslinux-0188c20b01e4c5702108390eae6ea60a0af0a8e5.tar.gz
struct term_state: remove duplicate .xy and unused .attr
In struct term_state and its initialized instance default_state: Remove duplicated initialization of .xy Remove unused field .attr
-rw-r--r--com32/lib/sys/ansi.c1
-rw-r--r--com32/lib/sys/ansi.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/com32/lib/sys/ansi.c b/com32/lib/sys/ansi.c
index 27975ddc..9212f92c 100644
--- a/com32/lib/sys/ansi.c
+++ b/com32/lib/sys/ansi.c
@@ -52,7 +52,6 @@ static const struct term_state default_state =
.state = st_init,
.pvt = 0,
.nparms = 0,
- .xy = { 0, 0 },
};
/* DEC VT graphics to codepage 437 table (characters 0x60-0x7F only) */
diff --git a/com32/lib/sys/ansi.h b/com32/lib/sys/ansi.h
index 7ea3f83c..5ac008ea 100644
--- a/com32/lib/sys/ansi.h
+++ b/com32/lib/sys/ansi.h
@@ -23,7 +23,6 @@ struct curxy {
struct term_state {
struct curxy xy;
- int attr; /* Current display attribute */
int cindex; /* SOH color index */
int vtgraphics; /* VT graphics on/off */
int intensity;