From 11c671d89145b69f5d7d87eb2aaa79225ac23d39 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 15 Nov 2010 02:09:01 +0100 Subject: [PATCH] Fix reds --- apps/gui/bitmap/list.c | 5 ----- apps/plugin.c | 1 + apps/plugin.h | 4 ++++ 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/gui/bitmap/list.c b/apps/gui/bitmap/list.c index 7154421e1..ba90f8414 100644 --- a/apps/gui/bitmap/list.c +++ b/apps/gui/bitmap/list.c @@ -548,11 +548,6 @@ static bool swipe_scroll(struct gui_synclist * gui_list, int line_height, int di /* keep selected item in sync */ gui_list->selected_item = new_start_item + selection_offset; } - if (_i > 0) - v0 /= _i; - else - v0 = 0; - return true; } diff --git a/apps/plugin.c b/apps/plugin.c index 86571c6d3..10bb25b34 100644 --- a/apps/plugin.c +++ b/apps/plugin.c @@ -728,6 +728,7 @@ static const struct plugin_api rockbox_api = { /* new stuff at the end, sort into place next time the API gets incompatible */ + get_user_file_path, }; int plugin_load(const char* plugin, const void* parameter) diff --git a/apps/plugin.h b/apps/plugin.h index 109d84bd1..99fed181e 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -901,6 +901,10 @@ struct plugin_api { /* new stuff at the end, sort into place next time the API gets incompatible */ + const char* (*get_user_file_path)(const char *path, + unsigned flags, + char* buf, + const size_t bufsize); }; /* plugin header */ -- 2.11.4.GIT