diff options
author | Andy Lester <andy@petdance.com> | 2005-03-25 08:43:31 -0600 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-03-25 21:02:04 +0000 |
commit | 73d840c0daa603a18a29260159881d4ef6772d73 (patch) | |
tree | b5e129b2bb73cff2818caf0fa6c7f60ce32a2635 /perlio.c | |
parent | cacf81f42beab47944769821db143b4be96edd5d (diff) | |
download | perl-73d840c0daa603a18a29260159881d4ef6772d73.tar.gz |
Consting part 4
Message-ID: <20050325204331.GA16388@petdance.com>
p4raw-id: //depot/perl@24079
Diffstat (limited to 'perlio.c')
-rw-r--r-- | perlio.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -4727,8 +4727,8 @@ char * PerlIO_getname(PerlIO *f, char *buf) { dTHX; - char *name = NULL; #ifdef VMS + char *name = NULL; bool exported = FALSE; FILE *stdio = PerlIOSelf(f, PerlIOStdio)->stdio; if (!stdio) { @@ -4739,10 +4739,12 @@ PerlIO_getname(PerlIO *f, char *buf) name = fgetname(stdio, buf); if (exported) PerlIO_releaseFILE(f,stdio); } + return name; #else + (void)f; + (void)buf; Perl_croak(aTHX_ "Don't know how to get file name"); #endif - return name; } |