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
Compiler masochism compliance.
[exim.git]
/
src
/
src
/
string.c
diff --git
a/src/src/string.c
b/src/src/string.c
index 49ffc968548ff183445c132e2652cb631ab12408..d501453c79eeab054196410d04ad0fe785bc5efd 100644
(file)
--- a/
src/src/string.c
+++ b/
src/src/string.c
@@
-641,7
+641,7
@@
Returns: pointer to fresh piece of store containing sprintf'ed string
*/
uschar *
*/
uschar *
-string_sprintf(char *format, ...)
+string_sprintf(c
onst c
har *format, ...)
{
va_list ap;
uschar buffer[STRING_SPRINTF_BUFFER_SIZE];
{
va_list ap;
uschar buffer[STRING_SPRINTF_BUFFER_SIZE];
@@
-669,7
+669,7
@@
Returns: < 0, = 0, or > 0, according to the comparison
*/
int
*/
int
-strncmpic(
uschar *s,
uschar *t, int n)
+strncmpic(
const uschar *s, const
uschar *t, int n)
{
while (n--)
{
{
while (n--)
{
@@
-693,7
+693,7
@@
Returns: < 0, = 0, or > 0, according to the comparison
*/
int
*/
int
-strcmpic(
uschar *s,
uschar *t)
+strcmpic(
const uschar *s, const
uschar *t)
{
while (*s != 0)
{
{
while (*s != 0)
{
@@
-1052,7
+1052,7
@@
Returns: TRUE if the result fitted in the buffer
*/
BOOL
*/
BOOL
-string_format(uschar *buffer, int buflen, char *format, ...)
+string_format(uschar *buffer, int buflen, c
onst c
har *format, ...)
{
BOOL yield;
va_list ap;
{
BOOL yield;
va_list ap;
@@
-1064,13
+1064,13
@@
return yield;
BOOL
BOOL
-string_vformat(uschar *buffer, int buflen, char *format, va_list ap)
+string_vformat(uschar *buffer, int buflen, c
onst c
har *format, va_list ap)
{
enum { L_NORMAL, L_SHORT, L_LONG, L_LONGLONG, L_LONGDOUBLE };
BOOL yield = TRUE;
int width, precision;
{
enum { L_NORMAL, L_SHORT, L_LONG, L_LONGLONG, L_LONGDOUBLE };
BOOL yield = TRUE;
int width, precision;
-c
har *fp = format;
/* Deliberately not unsigned */
+c
onst char *fp = format;
/* Deliberately not unsigned */
uschar *p = buffer;
uschar *last = buffer + buflen - 1;
uschar *p = buffer;
uschar *last = buffer + buflen - 1;
@@
-1085,8
+1085,8
@@
while (*fp != 0)
int length = L_NORMAL;
int *nptr;
int slen;
int length = L_NORMAL;
int *nptr;
int slen;
- c
har *null = "NULL";
/* ) These variables */
- c
har *item_start, *s;
/* ) are deliberately */
+ c
onst char *null = "NULL";
/* ) These variables */
+ c
onst char *item_start, *s;
/* ) are deliberately */
char newformat[16]; /* ) not unsigned */
/* Non-% characters just get copied verbatim */
char newformat[16]; /* ) not unsigned */
/* Non-% characters just get copied verbatim */
@@
-1340,7
+1340,7
@@
Returns: a message, in dynamic store
*/
uschar *
*/
uschar *
-string_open_failed(int eno, char *format, ...)
+string_open_failed(int eno, c
onst c
har *format, ...)
{
va_list ap;
uschar buffer[1024];
{
va_list ap;
uschar buffer[1024];