search for: reg_voltsen

Displaying 1 result from an estimated 1 matches for "reg_voltsen".

Did you mean: reg_voltsens
2011 Oct 03
0
patch: Fix [-Wunused-but-set-variable]
...ar *cmdname, const c /* set a variable */ static int setvar(const char *varname, const char *val) { - int i, r; + int i; if (!strcasecmp(varname, "input.sensitivity")) { for (i=0; i<asize(voltsens); i++) { if (!strcasecmp(val, voltsens[i])) { - r = belkin_nut_write_int(REG_VOLTSENS, i); + belkin_nut_write_int(REG_VOLTSENS, i); + /* r = belkin_nut_write_int(REG_VOLTSENS, i); */ return STAT_SET_HANDLED; /* Future: failure if r==-1 */ } } @@ -1261,13 +1262,13 @@ static int setvar(const char *varname, c } else { i=atoi(val); } - r = belkin_nut_write...