summaryrefslogtreecommitdiff
path: root/perlio.c
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2005-05-21 04:06:40 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-05-24 12:33:01 +0000
commit504618e92cbf415cc727244b0e64aab9ddfb1c10 (patch)
tree013cc7cb013c430f1c256b1dd1109b8b82da0241 /perlio.c
parent3480a8d2d46562b783befbcecf951d5a2b4067d7 (diff)
downloadperl-504618e92cbf415cc727244b0e64aab9ddfb1c10.tar.gz
embed.fnc cleanup + SvPVX_const usage
Message-ID: <20050521140640.GB875@petdance.com> p4raw-id: //depot/perl@24561
Diffstat (limited to 'perlio.c')
-rw-r--r--perlio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/perlio.c b/perlio.c
index b4ebc7bab7..5415db3a62 100644
--- a/perlio.c
+++ b/perlio.c
@@ -270,7 +270,7 @@ PerlIO_fdupopen(pTHX_ PerlIO *f, CLONE_PARAMS *param, int flags)
return win32_fdupopen(f);
#else
if (f) {
- int fd = PerlLIO_dup(PerlIO_fileno(f));
+ const int fd = PerlLIO_dup(PerlIO_fileno(f));
if (fd >= 0) {
char mode[8];
int omode = fcntl(fd, F_GETFL);
@@ -763,7 +763,7 @@ PerlIO_find_layer(pTHX_ const char *name, STRLEN len, int load)
SAVEINT(PL_in_load_module);
if (cv) {
SAVEGENERICSV(PL_warnhook);
- SvREFCNT_inc(cv);
+ (void)SvREFCNT_inc(cv);
PL_warnhook = (SV *) cv;
}
PL_in_load_module++;