Numerous (TINY) fixes: mostly unused variables...
This commit is contained in:
@@ -325,7 +325,7 @@ client_del_key_func (client * c, int argc, char **argv)
|
||||
int
|
||||
screen_add_key_func (client * c, int argc, char **argv)
|
||||
{
|
||||
widget * w ; /* Keys are stored on a WID_KEYS widget */
|
||||
//widget * w ; /* Keys are stored on a WID_KEYS widget */
|
||||
screen * s ; /* Attached to a specific screen */
|
||||
char * id ; /* Screen ID */
|
||||
char * keys ; /* Keys wanted */
|
||||
@@ -397,7 +397,7 @@ screen_add_key_func (client * c, int argc, char **argv)
|
||||
int
|
||||
screen_del_key_func (client * c, int argc, char **argv)
|
||||
{
|
||||
widget * w ; /* Keys are stored on a WID_KEYS widget */
|
||||
//widget * w ; /* Keys are stored on a WID_KEYS widget */
|
||||
screen * s ; /* Attached to a specific screen */
|
||||
char * id ; /* Screen ID */
|
||||
char * keys ; /* Keys wanted */
|
||||
@@ -1290,7 +1290,7 @@ backlight_func (client * c, int argc, char **argv)
|
||||
int
|
||||
output_func (client * c, int argc, char **argv)
|
||||
{
|
||||
int rc = 0;
|
||||
//int rc = 0;
|
||||
char str[128];
|
||||
|
||||
if (argc != 2) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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?
|
||||
|
||||
@@ -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;
|
||||
|
||||
+2
-2
@@ -99,8 +99,8 @@ handle_input ()
|
||||
char str[15];
|
||||
int key;
|
||||
screen *s;
|
||||
widget *w;
|
||||
client *c;
|
||||
//widget *w;
|
||||
//client *c;
|
||||
|
||||
if ((key = lcd_ptr->getkey ()) == 0)
|
||||
return 0;
|
||||
|
||||
+1
-1
@@ -127,7 +127,7 @@ main (int argc, char **argv)
|
||||
int daemon_mode = 1;
|
||||
int disable_server_screen = 1;
|
||||
screen *s = NULL;
|
||||
char *str, *ing; // strings for commandline handling
|
||||
//char *str, *ing; // strings for commandline handling
|
||||
char user[64];
|
||||
char c, buf[64], *driverlist[MAX_DRIVERS], *driverargs[MAX_DRIVERS];
|
||||
char linebuf[128], driver_name[64];
|
||||
|
||||
+4
-4
@@ -25,14 +25,14 @@
|
||||
int
|
||||
parse_all_client_messages ()
|
||||
{
|
||||
int i, j, len;
|
||||
int newtoken, inquote;
|
||||
int i; // int j, len;
|
||||
//int newtoken, inquote;
|
||||
client *c;
|
||||
char *str, *p, *q, *s;
|
||||
// char *tok;
|
||||
int argc;
|
||||
char *argv[256];
|
||||
char delimiters[] = " ";
|
||||
//char delimiters[] = " ";
|
||||
char leftquote[] = "\"'`([{";
|
||||
char rightquote[] = "\"'`)]}";
|
||||
char errmsg[256];
|
||||
@@ -40,7 +40,7 @@ parse_all_client_messages ()
|
||||
int quoteindex;
|
||||
|
||||
for (i = 0; i <= 256; i++) {
|
||||
argv[i] == NULL;
|
||||
argv[i] = NULL;
|
||||
}
|
||||
|
||||
#define SEPARATOR_CHAR ' '
|
||||
|
||||
@@ -110,7 +110,7 @@ update_server_screen (int timer)
|
||||
{
|
||||
client *c;
|
||||
int num_clients;
|
||||
screen *s;
|
||||
//screen *s;
|
||||
int num_screens;
|
||||
|
||||
// Draw a title...
|
||||
|
||||
Reference in New Issue
Block a user