Hey, I'm looking at 'lib/ipmi_chassis.c' and there seems to be an unused variable on line 1143, or am I just wrong and blind?
Part of the code in question is pasted bellow. Variable in question is "i". And "op" resp. "struct options" has field "i". Thus I assume variable "i" is not used anywhere. ~~~ 'lib/ipmi_chassis.c' ~~~ while (token != NULL) { int i; /* HERE */ if (strcmp(token, "help") == 0) { optionError = 1; break; } for (op = options; op->name != NULL; ++op) { if (strcmp(token, op->name) == 0) { flags[op->i] &= op->mask; flags[op->i] |= op->value; break; } } if (op->name == NULL) { /* Option not found */ optionError = 1; lprintf(LOG_ERR, "Invalid option: %s", token); } token = strtok_r(NULL, ",", &saveptr); } ~~~ 'lib/ipmi_chassis.c' ~~~ Thanks, Z. ------------------------------------------------------------------------------ Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ _______________________________________________ Ipmitool-devel mailing list Ipmitool-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ipmitool-devel