summaryrefslogtreecommitdiff
path: root/apps/plugins/text_editor.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/text_editor.c')
-rw-r--r--apps/plugins/text_editor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/plugins/text_editor.c b/apps/plugins/text_editor.c
index 617155fb2b..0edde54e75 100644
--- a/apps/plugins/text_editor.c
+++ b/apps/plugins/text_editor.c
@@ -26,7 +26,7 @@
26#endif 26#endif
27#define MAX_LINE_LEN 2048 27#define MAX_LINE_LEN 2048
28PLUGIN_HEADER 28PLUGIN_HEADER
29static struct plugin_api* rb; 29static const struct plugin_api* rb;
30 30
31static char buffer[MAX_CHARS]; 31static char buffer[MAX_CHARS];
32static char eol[3]; 32static char eol[3];
@@ -118,8 +118,8 @@ int _do_action(int action, char* str, int line)
118char *list_get_name_cb(int selected_item, void* data, 118char *list_get_name_cb(int selected_item, void* data,
119 char* buf, size_t buf_len) 119 char* buf, size_t buf_len)
120{ 120{
121 char *b = &buffer[do_action(ACTION_GET,0,selected_item)];
122 (void)data; 121 (void)data;
122 char *b = &buffer[do_action(ACTION_GET,0,selected_item)];
123 if (rb->strlen(b) >= buf_len) 123 if (rb->strlen(b) >= buf_len)
124 { 124 {
125 char t = b[buf_len-10]; 125 char t = b[buf_len-10];
@@ -306,7 +306,7 @@ int hex_to_rgb(const char* hex, int* color)
306#endif /* HAVE_LCD_COLOR */ 306#endif /* HAVE_LCD_COLOR */
307 307
308/* this is the plugin entry point */ 308/* this is the plugin entry point */
309enum plugin_status plugin_start(struct plugin_api* api, void* parameter) 309enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
310{ 310{
311 int fd; 311 int fd;
312 static char temp_line[MAX_LINE_LEN]; 312 static char temp_line[MAX_LINE_LEN];