]> granicus.if.org Git - curl/commitdiff
lib577: avoid redefinition of ERROR
authorKamil Dudka <kdudka@redhat.com>
Thu, 27 May 2010 22:50:11 +0000 (00:50 +0200)
committerKamil Dudka <kdudka@redhat.com>
Thu, 27 May 2010 22:50:11 +0000 (00:50 +0200)
tests/libtest/lib577.c

index fdab361e2a8a5f2daa38e5e89626dc29b439da99..bd52c62515bbf8e9deee5d6b6ed0a3ba96e9447c 100644 (file)
@@ -34,7 +34,7 @@
 
 #define MATCH   CURL_FNMATCH_MATCH
 #define NOMATCH CURL_FNMATCH_NOMATCH
-#define ERROR   CURL_FNMATCH_FAIL
+#define RE_ERR  CURL_FNMATCH_FAIL
 
 #define MAX_PATTERN_L 100
 #define MAX_STRING_L  100
@@ -48,8 +48,8 @@ struct testcase {
 static const struct testcase tests[] = {
   /* brackets syntax */
   { "\\[",                      "[",                      MATCH },
-  { "[",                        "[",                      ERROR },
-  { "[]",                       "[]",                     ERROR },
+  { "[",                        "[",                      RE_ERR },
+  { "[]",                       "[]",                     RE_ERR },
   { "[][]",                     "[",                      MATCH },
   { "[][]",                     "]",                      MATCH },
   { "[[]",                      "[",                      MATCH },
@@ -177,7 +177,7 @@ static const struct testcase tests[] = {
   { "x",                        "",                       NOMATCH },
 
   /* backslash */
-  { "\\",                       "\\",                     ERROR },
+  { "\\",                       "\\",                     RE_ERR },
   { "\\\\",                     "\\",                     MATCH },
   { "\\\\",                     "\\\\",                   NOMATCH },
   { "\\?",                      "?",                      MATCH },