NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
lib/45517: Add keyword restrict in glob().
>Number: 45517
>Category: lib
>Synopsis: Add keyword restrict in glob().
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: lib-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Oct 24 08:40:00 +0000 2011
>Originator: Henning Petersen
>Release:
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
diff -u -p -r1.30 glob.c
--- lib/libc/gen/glob.c 14 May 2011 22:44:06 -0000 1.30
+++ lib/libc/gen/glob.c 24 Oct 2011 06:32:20 -0000
@@ -180,8 +180,9 @@ static void qprintf(const char *, Char
#endif
int
-glob(const char *pattern, int flags, int (*errfunc)(const char *, int),
- glob_t *pglob)
+glob(const char * __restrict pattern, int flags,
+ int (*errfunc)(const char *, int),
+ glob_t * __restrict pglob)
{
const u_char *patnext;
int c;
Home |
Main Index |
Thread Index |
Old Index