mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
patch(1): make some macros look boolean.
Similar to r306560, plus remove an unused macro. Suggested by: jmallett
This commit is contained in:
parent
c7ef297a8e
commit
758a3cff59
1 changed files with 1 additions and 2 deletions
|
|
@ -47,9 +47,8 @@
|
|||
|
||||
/* handy definitions */
|
||||
|
||||
#define strNE(s1,s2) (strcmp(s1, s2))
|
||||
#define strEQ(s1,s2) (strcmp(s1, s2) == 0)
|
||||
#define strnNE(s1,s2,l) (strncmp(s1, s2, l))
|
||||
#define strnNE(s1,s2,l) (strncmp(s1, s2, l) != 0)
|
||||
#define strnEQ(s1,s2,l) (strncmp(s1, s2, l) == 0)
|
||||
|
||||
/* typedefs */
|
||||
|
|
|
|||
Loading…
Reference in a new issue