Mercurial > octave
changeset 21932:af1fc90d565e
fix declaration of octave_glob_match_list
* glob-wrappers.h, glob-wrappers.c: Return char**.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 16 Jun 2016 17:08:20 -0400 |
parents | ffa911b616c7 |
children | efe9df9a1071 |
files | liboctave/wrappers/glob-wrappers.c liboctave/wrappers/glob-wrappers.h |
diffstat | 2 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/wrappers/glob-wrappers.c Thu Jun 16 17:03:08 2016 -0400 +++ b/liboctave/wrappers/glob-wrappers.c Thu Jun 16 17:08:20 2016 -0400 @@ -61,7 +61,7 @@ return glob_info ? ((glob_t *) glob_info)->gl_pathc : 0; } -const char * const * +char ** octave_glob_match_list (void *glob_info) { return glob_info ? ((glob_t *) glob_info)->gl_pathv : 0;
--- a/liboctave/wrappers/glob-wrappers.h Thu Jun 16 17:03:08 2016 -0400 +++ b/liboctave/wrappers/glob-wrappers.h Thu Jun 16 17:08:20 2016 -0400 @@ -39,7 +39,7 @@ extern int octave_glob_num_matches (void *glob_info); -extern const char * const *octave_glob_match_list (void *glob_info); +extern char **octave_glob_match_list (void *glob_info); extern void octave_globfree_wrapper (void *glob_info);