mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-29 05:03:46 +08:00
job_get_from_pid: use canonical pid_t type
This commit is contained in:
parent
8612ac592d
commit
d32e7f5ad7
|
@ -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())) {
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue
Block a user