From 587c6b96efe8a88472fb2f24f09d0e93d60e2242 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Mon, 13 Apr 2009 10:48:27 +0000 Subject: Merged from gcc head revision 146001. 2009-04-13 Ozkan Sezer PR target/39397 * pex-common.h (struct pex_obj): Store pid values as pid_t, not as long (members *children and (*wait)) * pex-common.c (pex_run_in_environment): Likewise. * pex-win32.c (pex_win32_wait): Return pid_t and properly check returned pid value. * pex-djgpp.c (pex_djgpp_wait): Return pid_t. * pex-msdos.c (pex_msdos_wait): Likewise. --- libiberty/pex-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libiberty/pex-common.c') diff --git a/libiberty/pex-common.c b/libiberty/pex-common.c index 7f35536..9a9fe24 100644 --- a/libiberty/pex-common.c +++ b/libiberty/pex-common.c @@ -160,7 +160,7 @@ pex_run_in_environment (struct pex_obj *obj, int flags, const char *executable, int outname_allocated; int p[2]; int toclose; - long pid; + pid_t pid; in = -1; out = -1; @@ -345,7 +345,7 @@ pex_run_in_environment (struct pex_obj *obj, int flags, const char *executable, goto error_exit; ++obj->count; - obj->children = XRESIZEVEC (long, obj->children, obj->count); + obj->children = XRESIZEVEC (pid_t, obj->children, obj->count); obj->children[obj->count - 1] = pid; return NULL; -- cgit v1.1