]> granicus.if.org Git - mutt/commitdiff
use REGCOMP() macro
authorEmanuele Giaquinta <e.giaquinta@glauco.it>
Tue, 24 Aug 2010 16:54:01 +0000 (17:54 +0100)
committerEmanuele Giaquinta <e.giaquinta@glauco.it>
Tue, 24 Aug 2010 16:54:01 +0000 (17:54 +0100)
curs_lib.c
mutt_ssl_gnutls.c

index 5efd36eedcedf5af8c405beb366472110215040d..7f88cc93635577e7671957c22e50a0d438c3f36b 100644 (file)
@@ -207,9 +207,9 @@ int mutt_yesorno (const char *msg, int def)
   answer[1] = 0;
   
   reyes_ok = (expr = nl_langinfo (YESEXPR)) && expr[0] == '^' &&
-            !regcomp (&reyes, expr, REG_NOSUB|REG_EXTENDED);
+            !REGCOMP (&reyes, expr, REG_NOSUB);
   reno_ok = (expr = nl_langinfo (NOEXPR)) && expr[0] == '^' &&
-            !regcomp (&reno, expr, REG_NOSUB|REG_EXTENDED);
+            !REGCOMP (&reno, expr, REG_NOSUB);
 #endif
 
   CLEARLINE(LINES-1);
index ed3d5dc0b3db395984ae2738401731250a825dc3..346079c7ba173f3ad8545d940e9069980344a239 100644 (file)
@@ -512,7 +512,8 @@ static int tls_check_stored_hostname (const gnutls_datum *cert,
   /* try checking against names stored in stored certs file */
   if ((fp = fopen (SslCertFile, "r")))
   {
-    if (regcomp(&preg, "^#H ([a-zA-Z0-9_\\.-]+) ([0-9A-F]{4}( [0-9A-F]{4}){7})[ \t]*$", REG_ICASE|REG_EXTENDED) != 0)
+    if (REGCOMP(&preg, "^#H ([a-zA-Z0-9_\\.-]+) ([0-9A-F]{4}( [0-9A-F]{4}){7})[ \t]*$",
+                REG_ICASE) != 0)
     {
        regfree(&preg);
        return 0;