chiark / gitweb /
utils/macros.h: Add <ctype.h> and `foocmp' helper macros.
[mLib] / trace / traceopt.c
index 78d82bdbe04f80808967ac142ad51a15dcd90623..bbb8b02361bb91d7ea889c26db7af5a778826dca 100644 (file)
@@ -31,6 +31,7 @@
 #include <string.h>
 #include <stdlib.h>
 
+#include "macros.h"
 #include "report.h"
 #include "trace.h"
 
@@ -57,7 +58,7 @@ unsigned traceopt(const trace_opt *t, const char *p,
 
   /* --- Dump out help text --- */
 
-  if (!p || !strcmp(p, "?")) {
+  if (!p || STRCMP(p, ==, "?")) {
     const trace_opt *tt;
     puts("Trace options:");
     for (tt = t; tt->ch; tt++) {