job_get_from_pid: use canonical pid_t type

This commit is contained in:
David Adam 2017-04-23 21:59:58 +08:00
parent 8612ac592d
commit d32e7f5ad7
2 changed files with 2 additions and 2 deletions

View file

@ -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())) {

View file

@ -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.