summaryrefslogtreecommitdiff
path: root/libiberty/pex-common.c
diff options
context:
space:
mode:
authorktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-13 10:45:58 +0000
committerktietz <ktietz@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-13 10:45:58 +0000
commit486633f014c542bd25640632ab0ca482ecf09e2f (patch)
tree645bc54da810c66f07695088c570058ea7c950fc /libiberty/pex-common.c
parent724518ff7b8d00e2cad390ccfa46ebbbcde93024 (diff)
downloadgcc-486633f014c542bd25640632ab0ca482ecf09e2f.tar.gz
2009-04-13 Ozkan Sezer <sezeroz@gmail.com>
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146001 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/pex-common.c')
-rw-r--r--libiberty/pex-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libiberty/pex-common.c b/libiberty/pex-common.c
index 7f355365eda..9a9fe241957 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;