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
/
lookups
/
lsearch.c
diff --git
a/src/src/lookups/lsearch.c
b/src/src/lookups/lsearch.c
index 537cac769fe577f56ac433feb2dd135185906e24..8ea13301abaec9d3cecb2fc3ce2f926a321f5371 100644
(file)
--- a/
src/src/lookups/lsearch.c
+++ b/
src/src/lookups/lsearch.c
@@
-71,7
+71,7
@@
fit into the fixed sized buffer. Most of the time this will never be exercised,
but people do occasionally do weird things. */
static int
but people do occasionally do weird things. */
static int
-internal_lsearch_find(void *handle, uschar *filename, uschar *keystring,
+internal_lsearch_find(void *handle, uschar *filename,
const
uschar *keystring,
int length, uschar **result, uschar **errmsg, int type)
{
FILE *f = (FILE *)handle;
int length, uschar **result, uschar **errmsg, int type)
{
FILE *f = (FILE *)handle;
@@
-146,7
+146,7
@@
for (last_was_eol = TRUE;
uschar *t = s++;
while (*s != 0 && *s != '\"')
{
uschar *t = s++;
while (*s != 0 && *s != '\"')
{
- if (*s == '\\') *t++ = string_interpret_escape(&s);
+ if (*s == '\\') *t++ = string_interpret_escape(
CUSS
&s);
else *t++ = *s;
s++;
}
else *t++ = *s;
s++;
}
@@
-181,7
+181,7
@@
for (last_was_eol = TRUE;
{
int rc;
int save = buffer[linekeylength];
{
int rc;
int save = buffer[linekeylength];
- uschar *list = buffer;
+
const
uschar *list = buffer;
buffer[linekeylength] = 0;
rc = match_isinlist(keystring,
&list,
buffer[linekeylength] = 0;
rc = match_isinlist(keystring,
&list,
@@
-322,7
+322,7
@@
return FAIL;
/* See local README for interface description */
static int
/* See local README for interface description */
static int
-lsearch_find(void *handle, uschar *filename, uschar *keystring, int length,
+lsearch_find(void *handle, uschar *filename,
const
uschar *keystring, int length,
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
@@
-339,7
+339,7
@@
return internal_lsearch_find(handle, filename, keystring, length, result,
/* See local README for interface description */
static int
/* See local README for interface description */
static int
-wildlsearch_find(void *handle, uschar *filename, uschar *keystring, int length,
+wildlsearch_find(void *handle, uschar *filename,
const
uschar *keystring, int length,
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
@@
-356,7
+356,7
@@
return internal_lsearch_find(handle, filename, keystring, length, result,
/* See local README for interface description */
static int
/* See local README for interface description */
static int
-nwildlsearch_find(void *handle, uschar *filename, uschar *keystring, int length,
+nwildlsearch_find(void *handle, uschar *filename,
const
uschar *keystring, int length,
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
@@
-374,7
+374,7
@@
return internal_lsearch_find(handle, filename, keystring, length, result,
/* See local README for interface description */
static int
/* See local README for interface description */
static int
-iplsearch_find(void *handle, uschar *filename, uschar *keystring, int length,
+iplsearch_find(void *handle, uschar *filename,
const
uschar *keystring, int length,
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */
uschar **result, uschar **errmsg, BOOL *do_cache)
{
do_cache = do_cache; /* Keep picky compilers happy */