use more string_is_equal

This commit is contained in:
twinaphex 2016-01-20 05:21:52 +01:00
parent 16c48fdc86
commit 6cb55231d9
2 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,7 @@
#include <compat/posix_string.h>
#include <file/file_path.h>
#include <net/net_compat.h>
#include <string/stdstring.h>
#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;

View File

@ -16,6 +16,7 @@
#include <string.h>
#include <rhash.h>
#include <string/stdstring.h>
#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: