Displaying 1 result from an estimated 1 matches for "avail_list".
2011 Oct 03
0
patch: Fix [-Wunused-but-set-variable]
...============================
--- a/drivers/gamatronic.c 2011-05-31 13:36:49.000000000 +0300
+++ b/drivers/gamatronic.c 2011-08-17 00:23:22.000000000 +0300
@@ -248,7 +248,7 @@ void sec_poll ( int pollflag ) {
void upsdrv_initinfo(void)
{
- int msglen, e, v;
+ int msglen, v;
char *a,*p,avail_list[300];
/* find out which variables/commands this UPS supports */
@@ -264,7 +264,6 @@ void upsdrv_initinfo(void)
if (strlen(avail_list) == 0){
fatalx(EXIT_FAILURE, "No available variables found!");}
a = avail_list;
- e = 0;
while ((p = strtok(a, ",")...