summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-02-14 11:23:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-17 08:23:37 +0100
commit7e66707c7662c50c82c6eb62668134e3e342c34f (patch)
treeac0d254d0b610591b7e862fc508c701feb3e8ff0 /commands
parent9bdef9e7f2955728dddc189b03d587e42c950ce3 (diff)
downloadbarebox-7e66707c7662c50c82c6eb62668134e3e342c34f.tar.gz
barebox-7e66707c7662c50c82c6eb62668134e3e342c34f.tar.xz
input: Add BB_ prefix to KEY_ defines
Our KEY_ defines conflict with the standard Linux KEY_ defines, so add a BB_ prefix to them. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/edit.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/commands/edit.c b/commands/edit.c
index 295d0a709e..6764e84efd 100644
--- a/commands/edit.c
+++ b/commands/edit.c
@@ -456,7 +456,7 @@ static int do_edit(int argc, char *argv[])
c = read_key();
switch (c) {
- case KEY_UP:
+ case BB_KEY_UP:
if (!curline->prev)
continue;
@@ -464,7 +464,7 @@ static int do_edit(int argc, char *argv[])
cursy--;
textx = setpos(curline->data, linepos);
break;
- case KEY_DOWN:
+ case BB_KEY_DOWN:
if (!curline->next)
continue;
@@ -472,19 +472,19 @@ static int do_edit(int argc, char *argv[])
cursy++;
textx = setpos(curline->data, linepos);
break;
- case KEY_RIGHT:
+ case BB_KEY_RIGHT:
textx++;
break;
- case KEY_LEFT:
+ case BB_KEY_LEFT:
textx--;
break;
- case KEY_HOME:
+ case BB_KEY_HOME:
textx = 0;
break;
- case KEY_END:
+ case BB_KEY_END:
textx = curlen;
break;
- case KEY_PAGEUP:
+ case BB_KEY_PAGEUP:
for (i = 0; i < screenheight - 1; i++) {
if (!curline->prev)
break;
@@ -493,7 +493,7 @@ static int do_edit(int argc, char *argv[])
}
textx = setpos(curline->data, linepos);
break;
- case KEY_PAGEDOWN:
+ case BB_KEY_PAGEDOWN:
for (i = 0; i < screenheight - 1; i++) {
if (!curline->next)
break;
@@ -502,7 +502,7 @@ static int do_edit(int argc, char *argv[])
}
textx = setpos(curline->data, linepos);
break;
- case KEY_DEL:
+ case BB_KEY_DEL:
if (textx == curlen) {
if (curline->next)
merge_line(curline);