diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-09-26 17:54:06 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-09-26 17:54:06 +0000 |
commit | 7f315aed809e0b5d2b9e836b3ec901f6db88f7d1 (patch) | |
tree | f671b1700f94ac507aec27e189098dfb72ee3ff2 /util.c | |
parent | b1ddf169801254979af17f682f37e96143b35982 (diff) | |
download | perl-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.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |