From 0530ceb2b964e974ad7e25dd041b54a3ef577677 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 5 Sep 2001 22:31:07 +0000 Subject: [PATCH] * file.c (rb_find_file_ext): add const qualifiers to ext. * intern.h (rb_find_file_ext): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ file.c | 2 +- intern.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 737032423a..2c087967bf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Thu Sep 6 07:28:56 2001 Nobuyoshi Nakada + + * file.c (rb_find_file_ext): add const qualifiers to ext. + + * intern.h (rb_find_file_ext): ditto. + Thu Sep 6 07:16:14 2001 Nobuyoshi Nakada * ext/socket/socket.c (Init_socket): remove duplicating constants. diff --git a/file.c b/file.c index 2c14d8fe1b..a54f1726ab 100644 --- a/file.c +++ b/file.c @@ -2286,7 +2286,7 @@ extern VALUE rb_load_path; int rb_find_file_ext(filep, ext) VALUE *filep; - char **ext; + const char *const *ext; { char *path, *e, *found; char *f = RSTRING(*filep)->ptr; diff --git a/intern.h b/intern.h index 31bc5a049d..0fcdf5ac21 100644 --- a/intern.h +++ b/intern.h @@ -185,7 +185,7 @@ void rb_thread_atfork _((void)); int eaccess _((const char*, int)); VALUE rb_file_s_expand_path _((int, VALUE *)); void rb_file_const _((const char*, VALUE)); -int rb_find_file_ext _((VALUE*, char**)); +int rb_find_file_ext _((VALUE*, const char* const*)); VALUE rb_find_file _((VALUE)); /* gc.c */ void rb_gc_mark_locations _((VALUE*, VALUE*));