Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/gen PR/45517: Henning Petersen: Add restrict keywor...



details:   https://anonhg.NetBSD.org/src/rev/e0c502b0f681
branches:  trunk
changeset: 770726:e0c502b0f681
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Oct 30 21:53:43 2011 +0000

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

diffstat:

 lib/libc/gen/glob.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c715b437b4a3 -r e0c502b0f681 lib/libc/gen/glob.c
--- a/lib/libc/gen/glob.c       Sun Oct 30 21:48:27 2011 +0000
+++ b/lib/libc/gen/glob.c       Sun Oct 30 21:53:43 2011 +0000
@@ -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 @@
 #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