git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
constification
[exim.git]
/
src
/
src
/
string.c
diff --git
a/src/src/string.c
b/src/src/string.c
index 8ecbc0cd71063aea02f17d4773d714cc45956104..1e7922457cee09a2b6e0f6f175600bf2552d517b 100644
(file)
--- a/
src/src/string.c
+++ b/
src/src/string.c
@@
-770,11
+770,11
@@
Arguments:
Returns: pointer to substring in string, or NULL if not found
*/
Returns: pointer to substring in string, or NULL if not found
*/
-uschar *
-strstric
(uschar * s,
uschar * t, BOOL space_follows)
+
const
uschar *
+strstric
_c(const uschar * s, const
uschar * t, BOOL space_follows)
{
{
-uschar * p = t;
-uschar * yield = NULL;
+
const
uschar * p = t;
+
const
uschar * yield = NULL;
int cl = tolower(*p);
int cu = toupper(*p);
int cl = tolower(*p);
int cu = toupper(*p);
@@
-805,6
+805,11
@@
while (*s)
return NULL;
}
return NULL;
}
+uschar *
+strstric(uschar * s, uschar * t, BOOL space_follows)
+{
+return US strstric_c(s, t, space_follows);
+}
#ifdef COMPILE_UTILITY
#ifdef COMPILE_UTILITY