summaryrefslogtreecommitdiff
path: root/apps/plugins/calendar.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/calendar.c')
-rw-r--r--apps/plugins/calendar.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugins/calendar.c b/apps/plugins/calendar.c
index 866adceaee..07934b06a6 100644
--- a/apps/plugins/calendar.c
+++ b/apps/plugins/calendar.c
@@ -176,9 +176,7 @@ CONFIG_KEYPAD == SANSA_M200_PAD
176#define CELL_WIDTH (LCD_WIDTH / 7) 176#define CELL_WIDTH (LCD_WIDTH / 7)
177#define CELL_HEIGHT (LCD_HEIGHT / 7) 177#define CELL_HEIGHT (LCD_HEIGHT / 7)
178 178
179static const struct plugin_api* rb; 179MEM_FUNCTION_WRAPPERS
180
181MEM_FUNCTION_WRAPPERS(rb)
182 180
183static bool leap_year; 181static bool leap_year;
184/* days_in_month[][0] is for December */ 182/* days_in_month[][0] is for December */
@@ -788,7 +786,7 @@ static void prev_day(struct shown *shown, int step)
788 draw_calendar(shown); 786 draw_calendar(shown);
789} 787}
790 788
791enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 789enum plugin_status plugin_start(const void* parameter)
792{ 790{
793 struct today today; 791 struct today today;
794 struct shown shown; 792 struct shown shown;
@@ -797,8 +795,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
797 795
798 (void)(parameter); 796 (void)(parameter);
799 797
800 rb = api;
801
802 calendar_init(&today, &shown); 798 calendar_init(&today, &shown);
803 load_memo(&shown); 799 load_memo(&shown);
804 any_events(&shown, false); 800 any_events(&shown, false);