diff options
Diffstat (limited to 'apps/plugins/clock')
-rw-r--r-- | apps/plugins/clock/clock.c | 4 | ||||
-rw-r--r-- | apps/plugins/clock/clock.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/clock/clock.c b/apps/plugins/clock/clock.c index 07057d21b2..588112cf63 100644 --- a/apps/plugins/clock/clock.c +++ b/apps/plugins/clock/clock.c | |||
@@ -54,7 +54,7 @@ const struct button_mapping* plugin_contexts[]={ | |||
54 | #define ACTION_SKIN_PREV PLA_DEC | 54 | #define ACTION_SKIN_PREV PLA_DEC |
55 | #define ACTION_SKIN_PREV_REPEAT PLA_DEC_REPEAT | 55 | #define ACTION_SKIN_PREV_REPEAT PLA_DEC_REPEAT |
56 | 56 | ||
57 | extern struct plugin_api* rb; | 57 | extern const struct plugin_api* rb; |
58 | 58 | ||
59 | /************************** | 59 | /************************** |
60 | * Cleanup on plugin return | 60 | * Cleanup on plugin return |
@@ -109,7 +109,7 @@ void format_date(char* buffer, struct time* time, enum date_format format){ | |||
109 | /********************************************************************** | 109 | /********************************************************************** |
110 | * Plugin starts here | 110 | * Plugin starts here |
111 | **********************************************************************/ | 111 | **********************************************************************/ |
112 | enum plugin_status plugin_start(struct plugin_api* api, void* parameter){ | 112 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter){ |
113 | int button; | 113 | int button; |
114 | int last_second = -1; | 114 | int last_second = -1; |
115 | bool redraw=true; | 115 | bool redraw=true; |
diff --git a/apps/plugins/clock/clock.h b/apps/plugins/clock/clock.h index eeb04380a2..76822ec162 100644 --- a/apps/plugins/clock/clock.h +++ b/apps/plugins/clock/clock.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #ifndef _CLOCK_ | 20 | #ifndef _CLOCK_ |
21 | #define _CLOCK_ | 21 | #define _CLOCK_ |
22 | #include "clock_settings.h" | 22 | #include "clock_settings.h" |
23 | extern struct plugin_api* rb; | 23 | extern const struct plugin_api* rb; |
24 | 24 | ||
25 | struct time{ | 25 | struct time{ |
26 | int year, day, month; | 26 | int year, day, month; |