Fix: define macros for logging levels
[babeltrace.git] / src / plugins / ctf / common / metadata / visitor-semantic-validator.c
index 17f63ac9887fde795ec280d0ebea1ce1cfbe12ba..d22e4eee02dd30803ebf92c22bfab0c7530cf9a0 100644 (file)
@@ -27,7 +27,7 @@
 #define BT_COMP_LOG_SELF_COMP (log_cfg->self_comp)
 #define BT_LOG_OUTPUT_LEVEL (log_cfg->log_level)
 #define BT_LOG_TAG "PLUGIN/CTF/META/SEMANTIC-VALIDATOR-VISITOR"
-#include "plugins/comp-logging.h"
+#include "logging/comp-logging.h"
 
 #include <stdio.h>
 #include <unistd.h>
@@ -39,7 +39,6 @@
 #include <errno.h>
 #include "common/list.h"
 #include "scanner.h"
-#include "parser.h"
 #include "ast.h"
 #include "logging.h"
 
@@ -358,7 +357,7 @@ int ctf_visitor_field_class_declarator(int depth, struct ctf_node *node,
                        }
                }
                if (node->u.field_class_declarator.type == TYPEDEC_ID &&
-                   node->u.field_class_declarator.u.id != NULL)
+                   node->u.field_class_declarator.u.id)
                        goto errperm;
                break;                  /* OK */
        case NODE_TYPEDEF:
This page took 0.027283 seconds and 4 git commands to generate.