mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
module_util: Change streq helper method to just return bool
This commit is contained in:
parent
184baf118d
commit
7ca4d36942
1 changed files with 2 additions and 2 deletions
|
@ -14,9 +14,9 @@ using namespace std;
|
|||
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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue