module_util: Change streq helper method to just return bool

This commit is contained in:
Tim Wojtulewicz 2023-02-17 17:44:21 -07:00 committed by Tim Wojtulewicz
parent 184baf118d
commit 7ca4d36942

View file

@ -14,9 +14,9 @@ using namespace std;
namespace zeek::detail namespace zeek::detail
{ {
static int streq(const char* s1, const char* s2) static bool streq(const char* s1, const char* s2)
{ {
return ! strcmp(s1, s2); return strcmp(s1, s2) == 0;
} }
TEST_CASE("module_util streq") TEST_CASE("module_util streq")