X-Git-Url: https://vcs.fsf.org/?p=exim.git;a=blobdiff_plain;f=src%2Fexim_monitor%2Fem_init.c;h=b834d9a2b3c98d560bea77df08486f7734a9e0ed;hp=822b7eeb3c9237c205bfcec24a73da5c3123e7b1;hb=ba74fb8d95d2e9af2122e0a95c4d5334b4f0466c;hpb=184e88237dea64ce48076cdd0184612d057cbafd diff --git a/src/exim_monitor/em_init.c b/src/exim_monitor/em_init.c index 822b7eeb3..b834d9a2b 100644 --- a/src/exim_monitor/em_init.c +++ b/src/exim_monitor/em_init.c @@ -1,10 +1,8 @@ -/* $Cambridge: exim/src/exim_monitor/em_init.c,v 1.4 2007/01/08 10:50:17 ph10 Exp $ */ - /************************************************* * Exim monitor * *************************************************/ -/* Copyright (c) University of Cambridge 1995 - 2007 */ +/* Copyright (c) University of Cambridge 1995 - 2009 */ /* See the file NOTICE for conditions of use and distribution. */ /* This module contains code to initialize things from the @@ -72,9 +70,8 @@ for (i = 0; i <= 1; i++) { int offset; const uschar *error; - stripchart_regex[indx] = pcre_compile(CS buffer, PCRE_COPT, - (const char **)&error, &offset, NULL); - if (stripchart_regex[indx] == NULL) + if (!(stripchart_regex[indx] = pcre_compile(CS buffer, PCRE_COPT, + CCSS &error, &offset, NULL))) { printf("regular expression error: %s at offset %d " "while compiling %s\n", error, offset, buffer); @@ -233,7 +230,7 @@ queue_stripchart_name = (s != NULL)? string_copy(s) : US"queue"; /* Compile the regex for matching yyyy-mm-dd at the start of a string. */ yyyymmdd_regex = pcre_compile("^\\d{4}-\\d\\d-\\d\\d\\s", PCRE_COPT, - (const char **)&error, &erroroffset, NULL); + CCSS &error, &erroroffset, NULL); } /* End of em_init.c */