diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-10 14:37:08 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-10 14:37:08 +0000 |
commit | 9853a804c5ee6ba358f5279ea580f8fe915925b6 (patch) | |
tree | c4a5da8a3b2ce5a1b4bca361de31b4e8a476ec99 /pp_sys.c | |
parent | d8a83dd3ecf2b61bda27d39770e9942db2eb1719 (diff) | |
download | perl-9853a804c5ee6ba358f5279ea580f8fe915925b6.tar.gz |
Use Pid_t on pgrp matters.
p4raw-id: //depot/cfgperl@3951
Diffstat (limited to 'pp_sys.c')
-rw-r--r-- | pp_sys.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -3765,20 +3765,20 @@ PP(pp_getpgrp) #ifdef HAS_GETPGRP djSP; dTARGET; Pid_t pid; - I32 value; + Pid_t pgrp; if (MAXARG < 1) pid = 0; else pid = SvIVx(POPs); #ifdef BSD_GETPGRP - value = (I32)BSD_GETPGRP(pid); + pgrp = (I32)BSD_GETPGRP(pid); #else if (pid != 0 && pid != getpid()) DIE(aTHX_ "POSIX getpgrp can't take an argument"); - value = (I32)getpgrp(); + pgrp = getpgrp(); #endif - XPUSHi(value); + XPUSHi(pgrp); RETURN; #else DIE(aTHX_ PL_no_func, "getpgrp()"); |