summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-time/src
diff options
context:
space:
mode:
authorcremno <[email protected]>2014-03-04 18:34:04 +0100
committercremno <[email protected]>2014-03-05 16:53:42 +0100
commit333840ba6113dbc3cb6688922083ab8c17cd4c37 (patch)
tree07e7a37ad99560b86e3dc68007ef519a5eb73bae /mrbgems/mruby-time/src
parentf9c88e9c68efbd5dde0e3b106a9dc7c3c5a1df36 (diff)
downloadmruby-333840ba6113dbc3cb6688922083ab8c17cd4c37.tar.gz
mruby-333840ba6113dbc3cb6688922083ab8c17cd4c37.zip
mruby-time: mrb_time_type should be const
Diffstat (limited to 'mrbgems/mruby-time/src')
-rw-r--r--mrbgems/mruby-time/src/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-time/src/time.c b/mrbgems/mruby-time/src/time.c
index 55638f638..76e71a17b 100644
--- a/mrbgems/mruby-time/src/time.c
+++ b/mrbgems/mruby-time/src/time.c
@@ -119,7 +119,7 @@ struct mrb_time {
struct tm datetime;
};
-static struct mrb_data_type mrb_time_type = { "Time", mrb_free };
+static const struct mrb_data_type mrb_time_type = { "Time", mrb_free };
/** Updates the datetime of a mrb_time based on it's timezone and
seconds setting. Returns self on success, NULL of failure. */