From ce515f5c8fbf5a06dc9e0ff8706e913a2ff9154b Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 29 Sep 2011 11:37:47 +0000 Subject: [PATCH] * ext/gdbm/gdbm.c (rb_gdbm_fatal): adjust argument type. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ext/gdbm/gdbm.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 0c3d7a2362..19f69ceab5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Sep 29 20:37:38 2011 Nobuyoshi Nakada + + * ext/gdbm/gdbm.c (rb_gdbm_fatal): adjust argument type. + Thu Sep 29 20:10:42 2011 Nobuyoshi Nakada * gc.c (is_id_value, is_live_object): extract from id2ref(). diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c index 6f0c14d664..2b4ebfd26c 100644 --- a/ext/gdbm/gdbm.c +++ b/ext/gdbm/gdbm.c @@ -78,7 +78,7 @@ static VALUE rb_cGDBM, rb_eGDBMError, rb_eGDBMFatalError; #define MY_BLOCK_SIZE (2048) #define MY_FATAL_FUNC rb_gdbm_fatal static void -rb_gdbm_fatal(char *msg) +rb_gdbm_fatal(const char *msg) { rb_raise(rb_eGDBMFatalError, "%s", msg); }