diff lib-src/movemail.c @ 380:8626e4521993 r21-2-5

Import from CVS: tag r21-2-5
author cvs
date Mon, 13 Aug 2007 11:07:10 +0200
parents d883f39b8495
children bbff43aa5eb7
line wrap: on
line diff
--- a/lib-src/movemail.c	Mon Aug 13 11:06:08 2007 +0200
+++ b/lib-src/movemail.c	Mon Aug 13 11:07:10 2007 +0200
@@ -68,7 +68,7 @@
 #include "getopt.h"
 #ifdef MAIL_USE_POP
 #include "pop.h"
-#include <regex.h>
+#include "../src/regex.h"
 #endif
 
 extern char *optarg;
@@ -847,7 +847,7 @@
 /* Turn a name, which is an ed-style (but Emacs syntax) regular
    expression, into a real regular expression by compiling it. */
 static struct re_pattern_buffer*
-compile_regex (char* regexp_pattern)
+compile_regex (char* pattern)
 {
   char *err;
   struct re_pattern_buffer *patbuf=0;
@@ -858,7 +858,7 @@
   patbuf->buffer = NULL;
   patbuf->allocated = 0;
 
-  err = (char*) re_compile_pattern (regexp_pattern, strlen (regexp_pattern), patbuf);
+  err = (char*) re_compile_pattern (pattern, strlen (pattern), patbuf);
   if (err != NULL)
     {
       error ("%s while compiling pattern", err, NULL);