From 6cb55231d928a15ddc89ae0aaf0d96911e906eb0 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 20 Jan 2016 05:21:52 +0100 Subject: [PATCH] use more string_is_equal --- command.c | 3 ++- msg_hash.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/command.c b/command.c index 1401af08e9..6589fbade3 100644 --- a/command.c +++ b/command.c @@ -26,6 +26,7 @@ #include #include #include +#include #include "msg_hash.h" @@ -261,7 +262,7 @@ static bool command_get_arg(const char *tok, for (i = 0; i < ARRAY_SIZE(map); i++) { - if (!strcmp(tok, map[i].str)) + if (string_is_equal(tok, map[i].str)) { if (arg) *arg = NULL; diff --git a/msg_hash.c b/msg_hash.c index 47234c39e7..7bcfef9b35 100644 --- a/msg_hash.c +++ b/msg_hash.c @@ -16,6 +16,7 @@ #include #include +#include #include "msg_hash.h" @@ -59,7 +60,7 @@ const char *msg_hash_to_str(uint32_t hash) break; } - if (ret && strcmp(ret, "null") != 0) + if (ret && !string_is_equal(ret, "null")) return ret; end: