From 6b71187027dca6ef747d667fb9f637cb8fbd7bbc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 16 Mar 2007 00:37:51 +0000 Subject: [PATCH] 2007-03-15 Bruno Haible * lib/glob.c (glob): Add 'restrict' so that prototype matches the declared prototype. Needed with cc on OSF/1 5.1. --- ChangeLog | 5 +++++ lib/glob.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 523a19cc3..d35557e13 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2007-03-15 Bruno Haible + * 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 + * lib/gl_list.h (gl_listelement_dispose_fn): New type. (gl_list_create_empty, gl_list_create): Add dispose_fn argument. (struct gl_list_implementation): Add dispose_fn argument to the diff --git a/lib/glob.c b/lib/glob.c index a0af922d3..e8b79ffa5 100644 --- a/lib/glob.c +++ b/lib/glob.c @@ -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; -- 2.11.0