summaryrefslogtreecommitdiff
path: root/os2
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2014-03-02 09:50:38 +0100
committerNicholas Clark <nick@ccl4.org>2014-03-19 10:57:53 +0100
commitd5eb9a4687ba974ffd0d02aab53326c5aba6a9e0 (patch)
treeac42edbd4daada8d4b122daa07c4700ad8169abd /os2
parent4b451737e0f77cc9e91b1336d04f21659d96b732 (diff)
downloadperl-d5eb9a4687ba974ffd0d02aab53326c5aba6a9e0.tar.gz
Change core uses of Perl_do_openn() to Perl_do_open6() or Perl_do_open_raw().
Calls to Perl_do_openn() all have at least 2 unused arguments which clutter the code and hinder easy understanding. Perl_do_open6() and Perl_do_open_raw() each only do one job, so don't have the dead arguments.
Diffstat (limited to 'os2')
-rw-r--r--os2/os2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os2/os2.c b/os2/os2.c
index d4e9c90aa7..4ae39e7f2d 100644
--- a/os2/os2.c
+++ b/os2/os2.c
@@ -4257,7 +4257,7 @@ XS(XS_OS2_pipe)
ST(0) = sv_newmortal();
{
GV *gv = newGVgen("OS2::pipe");
- if ( do_open(gv, perltype, strlen(perltype), FALSE, 0, 0, perlio) )
+ if ( do_open6(gv, perltype, strlen(perltype), perlio, NULL, 0) )
sv_setsv(ST(0), sv_bless(newRV((SV*)gv), gv_stashpv("IO::Handle",1)));
else
ST(0) = &PL_sv_undef;