summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-09-26 17:54:06 +0000
committerNicholas Clark <nick@ccl4.org>2005-09-26 17:54:06 +0000
commit7f315aed809e0b5d2b9e836b3ec901f6db88f7d1 (patch)
treef671b1700f94ac507aec27e189098dfb72ee3ff2 /util.c
parentb1ddf169801254979af17f682f37e96143b35982 (diff)
downloadperl-7f315aed809e0b5d2b9e836b3ec901f6db88f7d1.tar.gz
const sausage const const bacon const tomato and const
The search_ext parameter to find_script can be a little more const. p4raw-id: //depot/perl@25605
Diffstat (limited to 'util.c')
-rw-r--r--util.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/util.c b/util.c
index 6e39cb6ab5..ccbb7f9eae 100644
--- a/util.c
+++ b/util.c
@@ -2786,7 +2786,8 @@ Perl_same_dirent(pTHX_ const char *a, const char *b)
#endif /* !HAS_RENAME */
char*
-Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char **search_ext, I32 flags)
+Perl_find_script(pTHX_ const char *scriptname, bool dosearch,
+ const char *const *const search_ext, I32 flags)
{
const char *xfound = Nullch;
char *xfailed = Nullch;
@@ -2808,8 +2809,8 @@ Perl_find_script(pTHX_ const char *scriptname, bool dosearch, const char **searc
#endif
/* additional extensions to try in each dir if scriptname not found */
#ifdef SEARCH_EXTS
- const char *exts[] = { SEARCH_EXTS };
- const char **ext = search_ext ? search_ext : exts;
+ const char *const exts[] = { SEARCH_EXTS };
+ const char *const *const ext = search_ext ? search_ext : exts;
int extidx = 0, i = 0;
const char *curext = Nullch;
#else