summaryrefslogtreecommitdiffstats
path: root/src/hci/mucurses
diff options
context:
space:
mode:
authorMichael Brown2006-12-18 22:12:58 +0100
committerMichael Brown2006-12-18 22:12:58 +0100
commit04d15fb8f8f76408aca07c9f7fe6f81a7e482ba2 (patch)
tree875731119b10884126861f3b53fb817b3ca05bb8 /src/hci/mucurses
parentRemove some unnecessary use of calloc() for tiny memory areas. (diff)
downloadipxe-04d15fb8f8f76408aca07c9f7fe6f81a7e482ba2.tar.gz
ipxe-04d15fb8f8f76408aca07c9f7fe6f81a7e482ba2.tar.xz
ipxe-04d15fb8f8f76408aca07c9f7fe6f81a7e482ba2.zip
There seems to be no reason why pos_x is static...
Diffstat (limited to 'src/hci/mucurses')
-rw-r--r--src/hci/mucurses/slk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hci/mucurses/slk.c b/src/hci/mucurses/slk.c
index a13164f28..f6476f9b0 100644
--- a/src/hci/mucurses/slk.c
+++ b/src/hci/mucurses/slk.c
@@ -41,8 +41,6 @@ struct _softlabelkeys {
struct _softlabelkeys *slks;
-static unsigned short pos_x;
-
/*
I either need to break the primitives here, or write a collection of
functions specifically for SLKs that directly access the screen
@@ -189,6 +187,8 @@ int slk_attr_set ( const attr_t attrs, short colour_pair_number,
*/
int slk_clear ( void ) {
chtype space_ch;
+ unsigned int pos_x;
+
if ( slks == NULL )
return ERR;
@@ -287,7 +287,7 @@ char* slk_label ( int labnum ) {
* @ret rc return status code
*/
int slk_restore ( void ) {
- unsigned int i, j,
+ unsigned int i, j, pos_x,
*next_space, *last_space;
chtype space_ch;