diff --git a/src/sigar_ptql.c b/src/sigar_ptql.c index 98bbcee9..d58c30c9 100644 --- a/src/sigar_ptql.c +++ b/src/sigar_ptql.c @@ -618,10 +618,9 @@ static int ptql_branch_init_pid(ptql_parse_branch_t *parsed, branch->flags = PTQL_PID_SERVICE; branch->data.str = strdup(parsed->value); branch->data_size = strlen(parsed->value); - return SIGAR_OK; -#else - return SIGAR_PTQL_MALFORMED_QUERY; #endif + return SIGAR_OK; + } else { return SIGAR_PTQL_MALFORMED_QUERY; @@ -659,7 +658,7 @@ static int ptql_pid_match(sigar_t *sigar, return status; } #else - return !SIGAR_OK; + return SIGAR_ENOTIMPL; #endif } else {