diff --git a/src/parser.cpp b/src/parser.cpp index ce5da0c9e..d1b9a99dd 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -566,7 +566,7 @@ job_t *parser_t::job_get(job_id_t id) { return NULL; } -job_t *parser_t::job_get_from_pid(int pid) { +job_t *parser_t::job_get_from_pid(pid_t pid) { job_iterator_t jobs; job_t *job; while ((job = jobs.next())) { diff --git a/src/parser.h b/src/parser.h index 7df2fdc52..a02fbc17f 100644 --- a/src/parser.h +++ b/src/parser.h @@ -319,7 +319,7 @@ class parser_t { job_t *job_get(job_id_t job_id); /// Returns the job with the given pid. - job_t *job_get_from_pid(int pid); + job_t *job_get_from_pid(pid_t pid); /// Returns a new profile item if profiling is active. The caller should fill it in. The /// parser_t will clean it up.