diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-24 01:00:02 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-11-24 01:00:02 +0000 |
commit | 48f55fd45714506e7754d0b0a2b3cbdff2cf901c (patch) | |
tree | 9ccee2ba46a1d86a82a538a17af7ee2a2e90a984 | |
parent | aabe9e1e3124733891dbb511169ad3b4d7d92515 (diff) | |
download | ruby-48f55fd45714506e7754d0b0a2b3cbdff2cf901c.tar.gz ruby-48f55fd45714506e7754d0b0a2b3cbdff2cf901c.tar.xz ruby-48f55fd45714506e7754d0b0a2b3cbdff2cf901c.zip |
* error.c (rb_strerrno): constified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | error.c | 2 | ||||
-rw-r--r-- | include/ruby/intern.h | 2 |
3 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Tue Nov 24 10:00:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * error.c (rb_strerrno): constified. + Tue Nov 24 09:49:31 2009 Tanaka Akira <akr@fsij.org> * error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown @@ -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 87f574142..d7ec07ddf 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); |