changeset 8439:d8182f376307

2007-03-15 Bruno Haible <bruno@clisp.org> * lib/glob.c (glob): Add 'restrict' so that prototype matches the declared prototype. Needed with cc on OSF/1 5.1.
author Bruno Haible <bruno@clisp.org>
date Fri, 16 Mar 2007 00:37:51 +0000
parents 238942284e2f
children 6f61a4aca9d7
files ChangeLog lib/glob.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-03-15  Bruno Haible  <bruno@clisp.org>
+
+	* lib/glob.c (glob): Add 'restrict' so that prototype matches the
+	declared prototype. Needed with cc on OSF/1 5.1.
+
 2007-03-15  Bruno Haible  <bruno@clisp.org>
 
 	* lib/gl_list.h (gl_listelement_dispose_fn): New type.
--- a/lib/glob.c
+++ b/lib/glob.c
@@ -212,10 +212,10 @@
 GLOB_ATTRIBUTE
 #endif
 glob (pattern, flags, errfunc, pglob)
-     const char *pattern;
+     const char * restrict pattern;
      int flags;
      int (*errfunc) (const char *, int);
-     glob_t *pglob;
+     glob_t * restrict pglob;
 {
   const char *filename;
   const char *dirname;