summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn E. Malmberg <wb8tyw@qsl.net>2005-07-24 15:09:01 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-08-01 07:23:08 +0000
commit6e73205105f5b52e070fbca13411b9ab4e21ee43 (patch)
tree22b522c9c25467a406431a9c7f2a189693507d6b
parentef7e80c4ffb0d80daa17dc6be88a4595251bdd51 (diff)
downloadperl-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.fnc2
-rw-r--r--perl.h2
-rw-r--r--proto.h2
-rw-r--r--util.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/embed.fnc b/embed.fnc
index 9e38ed8abd..b5f775f487 100644
--- a/embed.fnc
+++ b/embed.fnc
@@ -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 \
diff --git a/perl.h b/perl.h
index c1d08bbac1..6889fce2ef 100644
--- a/perl.h
+++ b/perl.h
@@ -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
diff --git a/proto.h b/proto.h
index e3822d4309..41b553addf 100644
--- a/proto.h
+++ b/proto.h
@@ -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
diff --git a/util.c b/util.c
index 7bd99f5131..6a8c4a69fa 100644
--- a/util.c
+++ b/util.c
@@ -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;