summaryrefslogtreecommitdiff
path: root/test/src
diff options
context:
space:
mode:
authorJeremy Harris <jgh146exb@wizmail.org>2016-11-08 22:41:42 +0000
committerJeremy Harris <jgh146exb@wizmail.org>2016-12-29 21:21:41 +0000
commit8cfd0f7b84730e10238219bd5b93677519ecbb16 (patch)
tree8da05a7d6aa2deb5dc5d053e8241f909d985b3b3 /test/src
parent0c9940588360567d54bafa8259e23939c61db676 (diff)
downloadexim4-8cfd0f7b84730e10238219bd5b93677519ecbb16.tar.gz
tidying
Diffstat (limited to 'test/src')
-rw-r--r--test/src/server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/test/src/server.c b/test/src/server.c
index 26fcaf070..9d00300f1 100644
--- a/test/src/server.c
+++ b/test/src/server.c
@@ -52,6 +52,7 @@ on all interfaces, unless the option -noipv6 is given. */
#ifndef CS
# define CS (char *)
+# define CCS (const char *)
#endif
@@ -726,7 +727,7 @@ for (count = 0; count < connection_count; count++)
alarm(0);
n += offset;
- printit(buffer, n);
+ printit(CS buffer, n);
if (data) do
{
@@ -772,8 +773,10 @@ for (count = 0; count < connection_count; count++)
}
}
- if (sscanf(buffer, "<Content-length: %d", &content_length.left)) content_length.in_use = TRUE;
- if (content_length.in_use && content_length.left <= 0) shutdown(dup_accept_socket, SHUT_RD);
+ if (sscanf(CCS buffer, "<Content-length: %d", &content_length.left))
+ content_length.in_use = TRUE;
+ if (content_length.in_use && content_length.left <= 0)
+ shutdown(dup_accept_socket, SHUT_RD);
}
}