From 63e86f792167e6cc2e9600d00b184a3c83fe7498 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Thu, 5 Nov 2020 17:30:39 +0100 Subject: Added warning flags and fixed them :) --- apps/files.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/files.c') diff --git a/apps/files.c b/apps/files.c index 2176a99..c27e39c 100644 --- a/apps/files.c +++ b/apps/files.c @@ -17,7 +17,7 @@ struct dirent { char name[]; }; -void render_list(char *path); +void render_list(const char *path); void on_click(struct event_mouse *event, struct element *elem) { (void)event; @@ -31,7 +31,7 @@ void on_click(struct event_mouse *event, struct element *elem) } // TODO: Dir iterator as kernel syscall? -void render_list(char *path) +void render_list(const char *path) { static struct element *list = NULL; if (list) @@ -49,7 +49,7 @@ void render_list(char *path) d->name[d->name_len] = '\0'; struct element *label = gui_add_label(list, 5, cnt * (gfx_font_height(FONT_16) + 5), FONT_16, d->name, COLOR_BLACK, COLOR_WHITE); - label->attributes = path; + label->attributes = (char *)path; if (d->type_indicator == 2) // Dir label->event.on_click = on_click; -- cgit v1.2.3