Imported Upstream version 2.6.3
This commit is contained in:
parent
45043b58d0
commit
fad6ced6f6
255 changed files with 11081 additions and 4629 deletions
|
|
@ -247,8 +247,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 +263,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, ",")) != NULL) {
|
||||
a = NULL;
|
||||
v = atoi(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue