Hi This removes a set of relocations. It's all static data, so no point in having pointers and the dynamic linker doing work.
- Lauri
>From 980db5227b0248241f46d2055e0d5c4c8febec1d Mon Sep 17 00:00:00 2001 From: Lauri Kasanen <[email protected]> Date: Wed, 6 Jun 2012 18:50:01 +0300 Subject: [PATCH] utils: Make sure the date_yd date_wd arrays are read-only Signed-off-by: Lauri Kasanen <[email protected]> --- src/mk_utils.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mk_utils.c b/src/mk_utils.c index b031331..8805794 100644 --- a/src/mk_utils.c +++ b/src/mk_utils.c @@ -50,8 +50,8 @@ #include "mk_macros.h" /* Date helpers */ -static const char *mk_date_wd[7] = {"Sun, ", "Mon, ", "Tue, ", "Wed, ", "Thu, ", "Fri, ", "Sat, "}; -static const char *mk_date_ym[12] = {"Jan ", "Feb ", "Mar ", "Apr ", "May ", "Jun ", "Jul ", +static const char mk_date_wd[][6] = {"Sun, ", "Mon, ", "Tue, ", "Wed, ", "Thu, ", "Fri, ", "Sat, "}; +static const char mk_date_ym[][5] = {"Jan ", "Feb ", "Mar ", "Apr ", "May ", "Jun ", "Jul ", "Aug ", "Sep ", "Oct ", "Nov ", "Dec "}; static int mk_utils_gmt_cache_get(char **data, time_t date) -- 1.7.2.1
_______________________________________________ Monkey mailing list [email protected] http://lists.monkey-project.com/listinfo/monkey
