diff options
author | John E. Malmberg <wb8tyw@qsl.net> | 2005-07-24 15:09:01 -0400 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-08-01 07:23:08 +0000 |
commit | 6e73205105f5b52e070fbca13411b9ab4e21ee43 (patch) | |
tree | 22b522c9c25467a406431a9c7f2a189693507d6b | |
parent | ef7e80c4ffb0d80daa17dc6be88a4595251bdd51 (diff) | |
download | perl-6e73205105f5b52e070fbca13411b9ab4e21ee43.tar.gz |
Re: blead@25210 on OpenVMS (not good)
From: "John E. Malmberg" <wb8tyw@qsl.net>
Message-ID: <42E41F8D.3040306@qsl.net>
constify Perl_unlnk
p4raw-id: //depot/perl@25251
-rw-r--r-- | embed.fnc | 2 | ||||
-rw-r--r-- | perl.h | 2 | ||||
-rw-r--r-- | proto.h | 2 | ||||
-rw-r--r-- | util.c | 2 |
4 files changed, 4 insertions, 4 deletions
@@ -833,7 +833,7 @@ Apd |UV |to_utf8_upper |NN const U8 *p|NN U8* ustrp|NULLOK STRLEN *lenp Apd |UV |to_utf8_title |NN const U8 *p|NN U8* ustrp|NULLOK STRLEN *lenp Apd |UV |to_utf8_fold |NN const U8 *p|NN U8* ustrp|NULLOK STRLEN *lenp #if defined(UNLINK_ALL_VERSIONS) -Ap |I32 |unlnk |NN char* f +Ap |I32 |unlnk |NN const char* f #endif Apd |I32 |unpack_str |NN const char *pat|NN const char *patend|NN const char *s \ |NULLOK const char *strbeg|NN const char *strend|NULLOK char **new_s \ @@ -3468,7 +3468,7 @@ char *getlogin (void); #ifdef UNLINK_ALL_VERSIONS /* Currently only makes sense for VMS */ #define UNLINK unlnk -I32 unlnk (char*); +I32 unlnk (const char*); #else #define UNLINK PerlLIO_unlink #endif @@ -2056,7 +2056,7 @@ PERL_CALLCONV UV Perl_to_utf8_fold(pTHX_ const U8 *p, U8* ustrp, STRLEN *lenp) __attribute__nonnull__(pTHX_2); #if defined(UNLINK_ALL_VERSIONS) -PERL_CALLCONV I32 Perl_unlnk(pTHX_ char* f) +PERL_CALLCONV I32 Perl_unlnk(pTHX_ const char* f) __attribute__nonnull__(pTHX_1); #endif @@ -1563,7 +1563,7 @@ Perl_setenv_getix(pTHX_ const char *nam) #ifdef UNLINK_ALL_VERSIONS I32 -Perl_unlnk(pTHX_ char *f) /* unlink all versions of a file */ +Perl_unlnk(pTHX_ const char *f) /* unlink all versions of a file */ { I32 i; |