]> Savannah Git Hosting - gnulib.git/commitdiff
regex: fix typo in previous patch
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Aug 2021 23:15:25 +0000 (16:15 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 26 Aug 2021 23:16:12 +0000 (16:16 -0700)
Fix typo in previous patch.  Somehow I managed to
omit the main point of the patch....

lib/regex.h

index 540c32316351b82dc154341b364ea4cbc9e87083..118f9b4beb1524dae9dc4f3bbafba748b37650c0 100644 (file)
@@ -680,9 +680,8 @@ extern int regcomp (regex_t *_Restrict_ __preg,
 
 extern int regexec (const regex_t *_Restrict_ __preg,
                    const char *_Restrict_ __String, size_t __nmatch,
-                   regmatch_t __pmatch[_Restrict_arr_],
-                   int __eflags)
-    _Attr_access_ ((__write_only__, 4, 3));
+                   regmatch_t __pmatch[_Restrict_arr_ _ARG_NELTS_ (__nmatch)],
+                   int __eflags);
 
 extern size_t regerror (int __errcode, const regex_t *_Restrict_ __preg,
                        char *_Restrict_ __errbuf, size_t __errbuf_size)