* config/srclist.txt: Add glibc bug 1225.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Aug 2005 00:43:34 +0000 (00:43 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 21 Aug 2005 00:43:34 +0000 (00:43 +0000)
* lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
of unused local, dfa.

config/ChangeLog
config/srclist.txt
lib/ChangeLog
lib/regexec.c

index 16536ae..04ec036 100644 (file)
@@ -1,6 +1,6 @@
 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
 
-       * srclist.txt: Add glibc bugs 1220, 1221, 1222, 1223, 1224.
+       * srclist.txt: Add glibc bugs 1220, 1221, 1222, 1223, 1224, 1225.
 
 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
 
index c5a203c..62a228e 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: srclist.txt,v 1.75 2005-08-21 00:29:47 eggert Exp $
+# $Id: srclist.txt,v 1.76 2005-08-21 00:43:34 eggert Exp $
 # Files for which we are not the source.  See ./srclistvars.sh for the
 # variable definitions.
 
@@ -119,6 +119,7 @@ $LIBCSRC/posix/regex.c                      lib gpl
 #
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1216
 # http://sources.redhat.com/bugzilla/show_bug.cgi?id=1220
+# http://sources.redhat.com/bugzilla/show_bug.cgi?id=1225
 #$LIBCSRC/posix/regexec.c              lib gpl
 #
 # c89 changes $LIBCSRC/string/strdup.c         lib gpl
index 7034ebd..341580d 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-20  Jim Meyering  <jim@meyering.net>
+
+       * regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
+       of unused local, dfa.
+
 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
 
        * regcomp.c (create_initial_state): Remove duplicate decl.
index 00867aa..6ca15bb 100644 (file)
@@ -214,7 +214,9 @@ regexec (const regex_t *__restrict preg, const char *__restrict string,
 {
   reg_errcode_t err;
   int start, length;
+#ifdef _LIBC
   re_dfa_t *dfa = (re_dfa_t *)preg->buffer;
+#endif
 
   if (eflags & ~(REG_NOTBOL | REG_NOTEOL | REG_STARTEND))
     return REG_BADPAT;
@@ -393,7 +395,9 @@ re_search_stub (struct re_pattern_buffer *bufp,
   regmatch_t *pmatch;
   int nregs, rval;
   int eflags = 0;
+#ifdef _LIBC
   re_dfa_t *dfa = (re_dfa_t *)bufp->buffer;
+#endif
 
   /* Check for out-of-range.  */
   if (BE (start < 0 || start > length, 0))