diff options
Diffstat (limited to 'lib/ipmi_oem.c')
-rw-r--r-- | lib/ipmi_oem.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ipmi_oem.c b/lib/ipmi_oem.c index f16fc33..d7cf9aa 100644 --- a/lib/ipmi_oem.c +++ b/lib/ipmi_oem.c @@ -135,15 +135,15 @@ ipmi_oem_setup(struct ipmi_intf * intf, char * oemtype) int rc = 0; if (!oemtype - || strcmp(oemtype, "help") == 0 - || strcmp(oemtype, "list") == 0) + || !strcmp(oemtype, "help") + || !strcmp(oemtype, "list")) { ipmi_oem_print(); return -1; } for (oem=ipmi_oem_list; oem->name; oem++) { - if (strcmp(oemtype, oem->name) == 0) + if (!strcmp(oemtype, oem->name)) break; } @@ -176,7 +176,7 @@ ipmi_oem_active(struct ipmi_intf * intf, const char * oemtype) if (!intf->oem) return 0; - if (strcmp(intf->oem->name, oemtype) == 0) + if (!strcmp(intf->oem->name, oemtype)) return 1; return 0; |