ID: 3608763 - 'lib/ipmi_sdr.c' - fix 'nosats' -> 'nosat'

Commit fixes typo in strncmp() comparison of argv and changes 'nosats'
to 'nosat'.

Commit for Dan Gora
This commit is contained in:
Zdenek Styblik 2013-04-12 13:01:07 +00:00
parent f074f76620
commit 1602e0a7a2

View File

@ -4719,7 +4719,7 @@ ipmi_sdr_main(struct ipmi_intf *intf, int argc, char **argv)
rc = -1;
} else if (strncmp(argv[1], "sensors", 7) == 0) {
rc = ipmi_sdr_add_from_sensors(intf, 21);
} else if (strncmp(argv[1], "nosats", 6) == 0) {
} else if (strncmp(argv[1], "nosat", 6) == 0) {
rc = ipmi_sdr_add_from_sensors(intf, 0);
} else if (strncmp(argv[1], "file", 4) == 0) {
if (argc < 3) {