diff --git a/drv_D4D.c b/drv_D4D.c index 253ec2a..52d0e8f 100755 --- a/drv_D4D.c +++ b/drv_D4D.c @@ -533,12 +533,16 @@ int drv_D4D_bar_draw(WIDGET * W) WIDGET_BAR *Bar = W->data; int row, col, len, res, max, val1, val2; DIRECTION dir; - STYLE style; +#if 0 + STYLE style; /* Fixme: unused variable */ +#endif row = W->row; col = W->col; dir = Bar->direction; - style = Bar->style; +#if 0 + style = Bar->style; /* Fixme: unused variable */ +#endif len = Bar->length; res = dir & (DIR_EAST | DIR_WEST) ? XRES : YRES; diff --git a/drv_EFN.c b/drv_EFN.c index dca226c..790f3ea 100644 --- a/drv_EFN.c +++ b/drv_EFN.c @@ -83,7 +83,7 @@ static char Name[] = "EFN"; -char Host[256]; +char *Host; int Port; int DataSocket; @@ -93,7 +93,7 @@ static void drv_EFN_clear(void); /*** hardware dependant functions ***/ /****************************************/ -static int drv_EFN_open(const char *section) +static int drv_EFN_open(const char __attribute__ ((unused)) * section) { int sockfd_conf, portno_conf, n; struct sockaddr_in serv_addr; @@ -176,23 +176,14 @@ static int drv_EFN_close(void) /* dummy function that sends something to the display */ static void drv_EFN_send(const char *data, const unsigned int len) { - int n, i; + int n; - // transport command stirng to EUG 100 + // transport command string to EUG 100 n = write(DataSocket, data, len); if (n < 0) { error("%s:drv_EFN_send: Failed to write to data socket\n", Name); - // return(-1); } - /* - printf("EFN_send: "); - for(i=0;i