Copyright year updates (things touched in 2015)
[exim.git] / src / src / regex.c
index de8ec685fc15a1114ae5de001a9f1c43b10a03c4..ed73b6e0f234c3b291835d5c4e9bad9f96cd2581 100644 (file)
@@ -2,7 +2,7 @@
 *     Exim - an Internet mail transport agent    *
 *************************************************/
 
-/* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2003-???? */
+/* Copyright (c) Tom Kistner <tom@duncanthrax.net> 2003-2015 */
 /* License: GPL */
 
 /* Code for matching regular expressions against headers and body.
@@ -25,9 +25,11 @@ uschar regex_match_string_buffer[1024];
 extern FILE *mime_stream;
 extern uschar *mime_current_boundary;
 
-int regex(uschar **listptr) {
+int
+regex(const uschar **listptr)
+{
   int sep = 0;
-  uschar *list = *listptr;
+  const uschar *list = *listptr;
   uschar *regex_string;
   uschar regex_string_buffer[1024];
   unsigned long mbox_size;
@@ -138,9 +140,11 @@ int regex(uschar **listptr) {
 }
 
 
-int mime_regex(uschar **listptr) {
+int
+mime_regex(const uschar **listptr)
+{
   int sep = 0;
-  uschar *list = *listptr;
+  const uschar *list = *listptr;
   uschar *regex_string;
   uschar regex_string_buffer[1024];
   pcre *re;
@@ -195,7 +199,7 @@ int mime_regex(uschar **listptr) {
 
   /* check if the file is already decoded */
   if (mime_decoded_filename == NULL) {
-    uschar *empty = US"";
+    const uschar *empty = US"";
     /* no, decode it first */
     mime_decode(&empty);
     if (mime_decoded_filename == NULL) {
@@ -242,4 +246,4 @@ int mime_regex(uschar **listptr) {
   return FAIL;
 }
 
-#endif
+#endif /* WITH_CONTENT_SCAN */