summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2015-11-25 21:02:40 +0100
committerHeiko Schlittermann (HS12-RIPE) <hs@schlittermann.de>2015-11-25 21:02:40 +0100
commitd753e5994ecfcce17eb44335f33132454bc0257c (patch)
tree466a87ca475811005de9b17d50597ed3405060bd
parent622dbd6a512d2c7786125e3b80e96a43e54b8e90 (diff)
Testsuite: Add Ustrtok() to quieten solaris' compiler
-rw-r--r--test/src/fakens.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/src/fakens.c b/test/src/fakens.c
index 00f1f7d46..444422124 100644
--- a/test/src/fakens.c
+++ b/test/src/fakens.c
@@ -99,6 +99,7 @@ typedef unsigned char uschar;
#define Ustrlen(s) (int)strlen(CCS(s))
#define Ustrncmp(s,t,n) strncmp(CCS(s),CCS(t),n)
#define Ustrncpy(s,t,n) strncpy(CS(s),CCS(t),n)
+#define Ustrtok(s,t) strtok(CS(s),CCS(t))
typedef struct zoneitem {
uschar *zone;
@@ -486,11 +487,11 @@ while (fgets(CS buffer, sizeof(buffer), f) != NULL)
switch (tvalue)
{
case ns_t_soa:
- p = strtok(p, " ");
+ p = Ustrtok(p, " ");
ep = p + strlen(p);
if (ep[-1] != '.') sprintf(CS ep, "%s.", zone);
pk = packname(p, pk); /* primary ns */
- p = strtok(NULL, " ");
+ p = Ustrtok(NULL, " ");
pk = packname(p , pk); /* responsible mailbox */
*(p += strlen(p)) = ' ';
while (isspace(*p)) p++;