summaryrefslogtreecommitdiff
path: root/apps/plugins/settings_dumper.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/settings_dumper.c')
-rw-r--r--apps/plugins/settings_dumper.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/settings_dumper.c b/apps/plugins/settings_dumper.c
index b9acdcf5fc..25b4098001 100644
--- a/apps/plugins/settings_dumper.c
+++ b/apps/plugins/settings_dumper.c
@@ -22,7 +22,6 @@
22 22
23PLUGIN_HEADER 23PLUGIN_HEADER
24 24
25static const struct plugin_api* rb;
26#define FILENAME "/settings_dumper.txt" 25#define FILENAME "/settings_dumper.txt"
27static int setting_count = 0; 26static int setting_count = 0;
28 27
@@ -117,14 +116,13 @@ static void write_setting(const struct settings_list *setting, int fd, unsigned
117 116
118 117
119/* this is the plugin entry point */ 118/* this is the plugin entry point */
120enum plugin_status plugin_start(const struct plugin_api* api, 119enum plugin_status plugin_start(
121 const void* parameter) 120 const void* parameter)
122{ 121{
123 const struct settings_list *list; 122 const struct settings_list *list;
124 int setting_count, i; 123 int setting_count, i;
125 int fd; 124 int fd;
126 (void)parameter; 125 (void)parameter;
127 rb = api;
128 126
129 fd = rb->open(FILENAME, O_CREAT|O_TRUNC|O_WRONLY); 127 fd = rb->open(FILENAME, O_CREAT|O_TRUNC|O_WRONLY);
130 if (fd < 0) 128 if (fd < 0)