~mdw
/
catacomb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
math/mpx-mul4-*.S: Fix up some of the commentary.
[catacomb]
/
key
/
key-flags.c
diff --git
a/key/key-flags.c
b/key/key-flags.c
index
169de2c
..
7cedb85
100644
(file)
--- a/
key/key-flags.c
+++ b/
key/key-flags.c
@@
-32,6
+32,7
@@
#include <mLib/bits.h>
#include <mLib/dstr.h>
#include <mLib/bits.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include "key-data.h"
#include "key-data.h"
@@
-104,10
+105,10
@@
int key_readflags(const char *p, char **pp, unsigned *ff, unsigned *mm)
/* --- Look up the string in the flags table --- */
/* --- Look up the string in the flags table --- */
- if (sz == 4 &&
strncmp(p, "none", 4) == 0
)
+ if (sz == 4 &&
STRNCMP(p, ==, "none", 4)
)
goto next;
for (e = flagtab; e->name; e++) {
goto next;
for (e = flagtab; e->name; e++) {
- if (
strncmp(e->name, p, sz) == 0
) {
+ if (
STRNCMP(e->name, ==, p, sz)
) {
if (e->name[sz] == 0) {
ee = e;
break;
if (e->name[sz] == 0) {
ee = e;
break;