summaryrefslogtreecommitdiffstats
path: root/bin/sh/jobs.c
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1997-08-18 02:53:20 +0000
committersteve <steve@FreeBSD.org>1997-08-18 02:53:20 +0000
commit4d76e42e811670cafbb06c27eef2d2a48c597977 (patch)
treed6bc8710a21e273a6bee968950041b1ed872cc94 /bin/sh/jobs.c
parentcc823b6e73bb5ca0ce0985be66c29c51c6db4610 (diff)
downloadFreeBSD-src-4d76e42e811670cafbb06c27eef2d2a48c597977.zip
FreeBSD-src-4d76e42e811670cafbb06c27eef2d2a48c597977.tar.gz
Make all status values an integral type and use
pid_t when referring to process IDs.
Diffstat (limited to 'bin/sh/jobs.c')
-rw-r--r--bin/sh/jobs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/sh/jobs.c b/bin/sh/jobs.c
index 13a2bfe..563892f 100644
--- a/bin/sh/jobs.c
+++ b/bin/sh/jobs.c
@@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: jobs.c,v 1.14 1997/05/19 00:18:42 steve Exp $
+ * $Id: jobs.c,v 1.15 1997/05/24 21:04:55 steve Exp $
*/
#ifndef lint
@@ -81,10 +81,10 @@ static char const sccsid[] = "@(#)jobs.c 8.5 (Berkeley) 5/4/95";
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 */
+int curjob; /* current job */
#endif
#if JOBS
@@ -174,6 +174,7 @@ setjobctl(on)
#ifdef mkinit
+INCLUDE <sys/types.h>
INCLUDE <stdlib.h>
SHELLPROC {
OpenPOWER on IntegriCloud