diff --git a/commands/ash/jobs.c b/commands/ash/jobs.c index 66e4868b5..ae9c5038c 100755 --- a/commands/ash/jobs.c +++ b/commands/ash/jobs.c @@ -75,10 +75,10 @@ static char sccsid[] = "@(#)jobs.c 5.1 (Berkeley) 3/7/91"; struct job *jobtab; /* array of jobs */ int njobs; /* size of array */ -MKINIT short backgndpid = -1; /* pid of last background process */ +MKINIT pid_t backgndpid = -1; /* pid of last background process */ #if JOBS int initialpgrp; /* pgrp of shell on invocation */ -short curjob; /* current job */ +pid_t curjob; /* current job */ #endif #ifdef __STDC__ diff --git a/commands/ash/jobs.h b/commands/ash/jobs.h index 1778fcf82..b87262fe2 100755 --- a/commands/ash/jobs.h +++ b/commands/ash/jobs.h @@ -50,7 +50,7 @@ */ struct procstat { - short pid; /* process id */ + pid_t pid; /* process id */ short status; /* status flags (defined above) */ char *cmd; /* text of command being run */ }; @@ -64,8 +64,8 @@ struct procstat { struct job { struct procstat ps0; /* status of process */ struct procstat *ps; /* status or processes when more than one */ - short nprocs; /* number of processes */ - short pgrp; /* process group of this job */ + pid_t nprocs; /* number of processes */ + pid_t pgrp; /* process group of this job */ char state; /* true if job is finished */ char used; /* true if this entry is in used */ char changed; /* true if status has changed */ @@ -74,7 +74,7 @@ struct job { #endif }; -extern short backgndpid; /* pid of last background process */ +extern pid_t backgndpid; /* pid of last background process */ #ifdef __STDC__ diff --git a/commands/ash/shell.h b/commands/ash/shell.h index cdf316a6f..690c92d92 100755 --- a/commands/ash/shell.h +++ b/commands/ash/shell.h @@ -85,6 +85,7 @@ typedef char *pointer; #define MKINIT /* empty */ #include +#include extern char nullstr[1]; /* null string */