add error param

This commit is contained in:
Doug MacEachern 2007-12-15 22:33:42 +00:00
parent 23aa02766c
commit 30d0ce400b
1 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ int ptql_test(sigar_t *sigar, char *ptql) {
int status, i; int status, i;
sigar_proc_list_t proclist; sigar_proc_list_t proclist;
sigar_ptql_query_t *query; sigar_ptql_query_t *query;
sigar_ptql_error_t error;
status = status =
sigar_proc_list_get(sigar, &proclist); sigar_proc_list_get(sigar, &proclist);
@ -15,7 +16,7 @@ int ptql_test(sigar_t *sigar, char *ptql) {
} }
status = status =
sigar_ptql_query_create(&query, ptql); sigar_ptql_query_create(&query, ptql, &error);
if (status != SIGAR_OK) { if (status != SIGAR_OK) {
return status; return status;