2007-03-15 Bruno Haible <bruno@clisp.org>
authorBruno Haible <bruno@clisp.org>
Fri, 16 Mar 2007 00:37:51 +0000 (00:37 +0000)
committerBruno Haible <bruno@clisp.org>
Fri, 16 Mar 2007 00:37:51 +0000 (00:37 +0000)
* lib/glob.c (glob): Add 'restrict' so that prototype matches the
declared prototype. Needed with cc on OSF/1 5.1.

ChangeLog
lib/glob.c

index 523a19cc37c246b9cc8b9150a221a4bc78419ef2..d35557e13e9719193d24386c7f51756c8bd73e59 100644 (file)
--- 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.
index a0af922d3ffa2d9cfb6a5ebf0bf9edf643837f09..e8b79ffa51f67309a8646fcc790f5cb41e7050eb 100644 (file)
@@ -212,10 +212,10 @@ int
 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;