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
/
parse.c
diff --git
a/src/src/parse.c
b/src/src/parse.c
index b1554db0f7b77bc9a7c5651db2bfb099a7abfa29..352f07d605106f7f96a31d7894aa96b930b040cf 100644
(file)
--- a/
src/src/parse.c
+++ b/
src/src/parse.c
@@
-65,7
+65,7
@@
Returns: pointer past the end of the address
*/
uschar *
*/
uschar *
-parse_find_address_end(uschar *s, BOOL nl_ends)
+parse_find_address_end(
const
uschar *s, BOOL nl_ends)
{
BOOL source_routing = *s == '@';
int no_term = source_routing? 1 : 0;
{
BOOL source_routing = *s == '@';
int no_term = source_routing? 1 : 0;
@@
-121,7
+121,7
@@
while (*s != 0 && (*s != ',' || no_term > 0) && (*s != '\n' || !nl_ends))
}
}
}
}
-return s;
+return
US
s;
}
}
@@
-863,7
+863,8
@@
Returns: pointer to the original string, if no quoting needed, or
*/
const uschar *
*/
const uschar *
-parse_quote_2047(const uschar *string, int len, uschar *charset, BOOL fold)
+parse_quote_2047(const uschar *string, int len, const uschar *charset,
+ BOOL fold)
{
const uschar * s = string;
int hlen, l;
{
const uschar * s = string;
int hlen, l;
@@
-1233,7
+1234,7
@@
Returns: FF_DELIVERED addresses extracted
*/
int
*/
int
-parse_forward_list(uschar *s, int options, address_item **anchor,
+parse_forward_list(
const
uschar *s, int options, address_item **anchor,
uschar **error, const uschar *incoming_domain, uschar *directory,
error_block **syntax_errors)
{
uschar **error, const uschar *incoming_domain, uschar *directory,
error_block **syntax_errors)
{
@@
-1247,7
+1248,7
@@
for (;;)
int special = 0;
int specopt = 0;
int specbit = 0;
int special = 0;
int specopt = 0;
int specbit = 0;
- uschar *ss, *nexts;
+
const
uschar *ss, *nexts;
address_item *addr;
BOOL inquote = FALSE;
address_item *addr;
BOOL inquote = FALSE;
@@
-1366,7
+1367,7
@@
for (;;)
{
uschar *filebuf;
uschar filename[256];
{
uschar *filebuf;
uschar filename[256];
-
uschar *
t = s+9;
+
const uschar *
t = s+9;
int flen = len - 9;
int frc;
struct stat statbuf;
int flen = len - 9;
int frc;
struct stat statbuf;