Module Name:    src
Committed By:   christos
Date:           Sun Oct 30 21:53:43 UTC 2011

Modified Files:
        src/lib/libc/gen: glob.c

Log Message:
PR/45517: Henning Petersen: Add restrict keywords in the definition of glob
to match the declaration.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libc/gen/glob.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/glob.c
diff -u src/lib/libc/gen/glob.c:1.30 src/lib/libc/gen/glob.c:1.31
--- src/lib/libc/gen/glob.c:1.30	Sat May 14 18:44:06 2011
+++ src/lib/libc/gen/glob.c	Sun Oct 30 17:53:43 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: glob.c,v 1.30 2011/05/14 22:44:06 christos Exp $	*/
+/*	$NetBSD: glob.c,v 1.31 2011/10/30 21:53:43 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)glob.c	8.3 (Berkeley) 10/13/93";
 #else
-__RCSID("$NetBSD: glob.c,v 1.30 2011/05/14 22:44:06 christos Exp $");
+__RCSID("$NetBSD: glob.c,v 1.31 2011/10/30 21:53:43 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -180,8 +180,8 @@ 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;

Reply via email to