X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=libiberty%2Fpex-common.c;fp=libiberty%2Fpex-common.c;h=9a9fe2419570888171fc4460aa8665a10c6bfde3;hp=7f355365edafd192fa2a0d46f8a733ba95fda2ad;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 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;