summaryrefslogtreecommitdiff
path: root/src/ipmievd.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ipmievd.c')
-rw-r--r--src/ipmievd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipmievd.c b/src/ipmievd.c
index bbfc136..eeaa0c9 100644
--- a/src/ipmievd.c
+++ b/src/ipmievd.c
@@ -192,7 +192,7 @@ ipmi_event_intf_load(char * name)
intf++)
{
i = *intf;
- if (strcmp(name, i->name) == 0) {
+ if (!strcmp(name, i->name)) {
return i;
}
}
@@ -845,7 +845,7 @@ ipmievd_open_main(struct ipmi_intf * intf, int argc, char ** argv)
struct ipmi_event_intf * eintf;
/* only one interface works for this */
- if (strcmp(intf->name, "open") != 0) {
+ if (strcmp(intf->name, "open")) {
lprintf(LOG_ERR, "Invalid Interface for OpenIPMI Event Handler: %s", intf->name);
return -1;
}