#include <time.h>
#include <mLib/dstr.h>
+#include <mLib/macros.h>
#include <mLib/sym.h>
#include "key.h"
if (!p || !*p || strlen(p) > 255)
return (-1);
while (*p) {
- if (*p == ':' || *p == '.' || isspace((unsigned char)*p))
+ if (*p == ':' || *p == '.' || ISSPACE(*p))
return (-1);
p++;
}
/* --- See if the new tag is the same as the old one --- */
- if ((!tag && !k->tag) ||
- (tag && k->tag && strcmp(tag, k->tag) == 0))
+ if ((!tag && !k->tag) || (tag && k->tag && STRCMP(tag, ==, k->tag)))
return (0);
/* --- Allocate an entry for the new tag --- */