From d32e7f5ad7192f9004af83680eedb17cf3da4223 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sun, 23 Apr 2017 21:59:58 +0800 Subject: [PATCH] job_get_from_pid: use canonical pid_t type --- src/parser.cpp | 2 +- src/parser.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.