Use pid_t for the result of fork and wait. PR 38031 from Ryan Stutsman.

This commit is contained in:
dholland 2009-02-22 07:33:00 +00:00
parent 57ebf9a50f
commit 1fc98979b6

View File

@ -1,4 +1,4 @@
/* $NetBSD: compat.c,v 1.75 2009/01/23 21:26:30 dsl Exp $ */ /* $NetBSD: compat.c,v 1.76 2009/02/22 07:33:00 dholland Exp $ */
/* /*
* Copyright (c) 1988, 1989, 1990 The Regents of the University of California. * Copyright (c) 1988, 1989, 1990 The Regents of the University of California.
@ -70,14 +70,14 @@
*/ */
#ifndef MAKE_NATIVE #ifndef MAKE_NATIVE
static char rcsid[] = "$NetBSD: compat.c,v 1.75 2009/01/23 21:26:30 dsl Exp $"; static char rcsid[] = "$NetBSD: compat.c,v 1.76 2009/02/22 07:33:00 dholland Exp $";
#else #else
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifndef lint #ifndef lint
#if 0 #if 0
static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94"; static char sccsid[] = "@(#)compat.c 8.2 (Berkeley) 3/19/94";
#else #else
__RCSID("$NetBSD: compat.c,v 1.75 2009/01/23 21:26:30 dsl Exp $"); __RCSID("$NetBSD: compat.c,v 1.76 2009/02/22 07:33:00 dholland Exp $");
#endif #endif
#endif /* not lint */ #endif /* not lint */
#endif #endif
@ -211,8 +211,8 @@ CompatRunCommand(void *cmdp, void *gnp)
volatile Boolean errCheck; /* Check errors */ volatile Boolean errCheck; /* Check errors */
int reason; /* Reason for child's death */ int reason; /* Reason for child's death */
int status; /* Description of child's death */ int status; /* Description of child's death */
int cpid; /* Child actually found */ pid_t cpid; /* Child actually found */
ReturnStatus retstat; /* Status of fork */ pid_t retstat; /* Result of wait */
LstNode cmdNode; /* Node where current command is located */ LstNode cmdNode; /* Node where current command is located */
const char ** volatile av; /* Argument vector for thing to exec */ const char ** volatile av; /* Argument vector for thing to exec */
char ** volatile mav;/* Copy of the argument vector for freeing */ char ** volatile mav;/* Copy of the argument vector for freeing */