summaryrefslogtreecommitdiff
path: root/apps/gui
diff options
context:
space:
mode:
authorSteve Bavin <pondlife@pondlife.me>2007-10-24 15:34:36 +0000
committerSteve Bavin <pondlife@pondlife.me>2007-10-24 15:34:36 +0000
commitfda41b892eba8a72cdf221ff32608656a1c036cc (patch)
tree201072ded9067f4315e26ba7eefd4947610c4a1a /apps/gui
parent1e45eecb230ceb46d03f3c480450e13913ad9a52 (diff)
downloadrockbox-fda41b892eba8a72cdf221ff32608656a1c036cc.zip
rockbox-fda41b892eba8a72cdf221ff32608656a1c036cc.tar.gz
rockbox-fda41b892eba8a72cdf221ff32608656a1c036cc.tar.bz2
rockbox-fda41b892eba8a72cdf221ff32608656a1c036cc.tar.xz
Try and save some bytes, seeing as we already assumed LANG_ constants for month and weekday names are contiguous.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15289 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
-rw-r--r--apps/gui/gwps-common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c
index a2f1aa6..fec13d5 100644
--- a/apps/gui/gwps-common.c
+++ b/apps/gui/gwps-common.c
@@ -1160,12 +1160,12 @@ static char *get_token_value(struct gui_wps *gwps,
case WPS_TOKEN_RTC_WEEKDAY_NAME:
/* a: abbreviated weekday name (Sun..Sat) */
- snprintf(buf, buf_size, "%s",str(dayname[tm->tm_wday]));
+ snprintf(buf, buf_size, "%s",str(LANG_WEEKDAY_SUNDAY + tm->tm_wday));
return buf;
case WPS_TOKEN_RTC_MONTH_NAME:
/* b: abbreviated month name (Jan..Dec) */
- snprintf(buf, buf_size, "%s",str(monthname[tm->tm_mon]));
+ snprintf(buf, buf_size, "%s",str(LANG_MONTH_JANUARY + tm->tm_mon));
return buf;
case WPS_TOKEN_RTC_DAY_OF_WEEK_START_MON: