commit | 22dc3522c9b5607b5c49ba6176afd57491557005 | [log] [tgz] |
---|---|---|
author | Mike Frysinger <[email protected]> | Thu Jul 07 19:24:13 2022 -0400 |
committer | Mike Frysinger <[email protected]> | Wed Jul 13 00:14:25 2022 +0000 |
tree | c10a9e64da80fb37eba709d2ce44f6c25237cb38 | |
parent | 537a1c9164b92135f5bc87c6fec53973a2952b2c [diff] [blame] |
util: add a streq helper This is a little easier to read than strcmp. Bug: None Test: unittests pass Change-Id: Idccb94c2cce84b11bd9bb9eeab699254baef529d
diff --git a/bpf.c b/bpf.c index d8bf46c..6fbe9b0 100644 --- a/bpf.c +++ b/bpf.c
@@ -362,7 +362,7 @@ } end = begin + labels->count; for (id = 0; begin < end; ++begin, ++id) { - if (!strcmp(label, begin->label)) { + if (streq(label, begin->label)) { return id; } }