From 259e157b301e6e6314647264e4e8bbe041519db6 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Sun, 11 Mar 2007 22:39:47 +0000 Subject: [PATCH] fix Pid.Service query parse result --- src/sigar_ptql.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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 {