Numerous (TINY) fixes: mostly unused variables...

This commit is contained in:
ddouthitt
2001-10-05 22:04:35 +00:00
parent 16cce2fe2d
commit ae18a158fc
8 changed files with 22 additions and 21 deletions
+7 -6
View File
@@ -276,8 +276,8 @@ curses_drv_init (struct lcd_logical_driver *driver, char *args)
static void
curses_drv_wborder (WINDOW *win) {
int x, y;
char buf[128];
//int x, y;
//char buf[128];
if (has_colors()) {
wcolor_set(win, current_border_pair, NULL);
@@ -327,8 +327,8 @@ curses_drv_clear ()
werase (lcd_win);
}
#define ValidX(a) { if (x > curses_drv->wid) { x = curses_drv->wid; } else x < 1 ? 1 : x; }
#define ValidY(a) { if (y > curses_drv->hgt) { y = curses_drv->hgt; } else y < 1 ? 1 : y; }
#define ValidX(x) { if ((x) > curses_drv->wid) { (x) = curses_drv->wid; } else (x) < 1 ? 1 : x; }
#define ValidY(y) { if ((y) > curses_drv->hgt) { (y) = curses_drv->hgt; } else (y) < 1 ? 1 : y; }
void
curses_drv_backlight (int on)
@@ -354,7 +354,8 @@ curses_drv_backlight (int on)
return;
break;
}
curses_drv_clear;
curses_drv_clear();
}
/////////////////////////////////////////////////////////////////
@@ -364,7 +365,7 @@ curses_drv_backlight (int on)
void
curses_drv_string (int x, int y, char *string)
{
int i;
//int i;
unsigned char *p;
ValidX(x);
+2 -2
View File
@@ -400,7 +400,7 @@ lcd_find_init (char *driver) {
struct lcd_logical_driver *
lcd_allocate_driver () {
struct lcd_logical_driver *driver;
int driver_size;
//int driver_size;
// This bit of fakery allows us to use lcd as the first
// allocated buffer, which is what everything currently uses for
@@ -506,7 +506,7 @@ lcd_add_driver (char *driver, char *args)
int
lcd_shutdown ()
{
lcd_logical_driver *driver;
//lcd_logical_driver *driver;
// This does not shutdown any input sources;
// is that sufficient?
+2 -2
View File
@@ -62,7 +62,7 @@ new_framebuf (struct lcd_logical_driver *driver, char *oldbuf) {
void
insert_str_framebuf (struct lcd_logical_driver *driver, int x, int y, char *string) {
int i;
//int i;
char buf[64];
char *pos;
@@ -93,7 +93,7 @@ insert_chr_framebuf (struct lcd_logical_driver *driver, int x, int y, char c) {
x--; y--;
if (x >= driver->wid) driver->wid;
if (x >= driver->wid) x = driver->wid;
if (x < 0) x = 0;
if (y >= driver->hgt) y = driver->hgt;