fix Pid.Service query parse result

This commit is contained in:
Doug MacEachern 2007-03-11 22:39:47 +00:00
parent 54792c3914
commit 259e157b30
1 changed files with 3 additions and 4 deletions

View File

@ -618,10 +618,9 @@ static int ptql_branch_init_pid(ptql_parse_branch_t *parsed,
branch->flags = PTQL_PID_SERVICE; branch->flags = PTQL_PID_SERVICE;
branch->data.str = strdup(parsed->value); branch->data.str = strdup(parsed->value);
branch->data_size = strlen(parsed->value); branch->data_size = strlen(parsed->value);
return SIGAR_OK;
#else
return SIGAR_PTQL_MALFORMED_QUERY;
#endif #endif
return SIGAR_OK;
} }
else { else {
return SIGAR_PTQL_MALFORMED_QUERY; return SIGAR_PTQL_MALFORMED_QUERY;
@ -659,7 +658,7 @@ static int ptql_pid_match(sigar_t *sigar,
return status; return status;
} }
#else #else
return !SIGAR_OK; return SIGAR_ENOTIMPL;
#endif #endif
} }
else { else {