From d7ffefb4059f95279f084d26ab04d92c7eb89975 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 24 Nov 2009 01:00:02 +0000 Subject: [PATCH] * error.c (rb_strerrno): constified. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ error.c | 2 +- include/ruby/intern.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8dcf6b7c00..d1b4f7056b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Nov 24 10:00:00 2009 Nobuyoshi Nakada + + * error.c (rb_strerrno): constified. + Tue Nov 24 09:49:31 2009 Tanaka Akira * error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown diff --git a/error.c b/error.c index f97452941b..9633e9e252 100644 --- a/error.c +++ b/error.c @@ -1258,7 +1258,7 @@ Init_syserr(void) #undef undefined_error } -char * +const char * rb_strerrno(int err) { if (err == 0) return "NOERROR"; diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 87f5741425..d7ec07ddfc 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -200,7 +200,7 @@ PRINTF_ARGS(void rb_compile_error_append(const char*, ...), 1, 2); NORETURN(void rb_load_fail(const char*)); NORETURN(void rb_error_frozen(const char*)); void rb_check_frozen(VALUE); -char *rb_strerrno(int); +const char *rb_strerrno(int); /* eval.c */ int rb_sourceline(void); const char *rb_sourcefile(void);