summaryrefslogtreecommitdiff
path: root/apps/plugins/ppmviewer.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/ppmviewer.c')
-rw-r--r--apps/plugins/ppmviewer.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/plugins/ppmviewer.c b/apps/plugins/ppmviewer.c
index 6db24ff804..56193b3c47 100644
--- a/apps/plugins/ppmviewer.c
+++ b/apps/plugins/ppmviewer.c
@@ -41,8 +41,6 @@ PLUGIN_HEADER
41static fb_data buffer[PPM_MAXSIZE]; 41static fb_data buffer[PPM_MAXSIZE];
42static fb_data lcd_buf[LCD_WIDTH * LCD_HEIGHT]; 42static fb_data lcd_buf[LCD_WIDTH * LCD_HEIGHT];
43 43
44static const struct plugin_api* rb; /* global api struct pointer */
45
46int ppm_read_magic_number(int fd) 44int ppm_read_magic_number(int fd)
47{ 45{
48 char i1, i2; 46 char i1, i2;
@@ -270,7 +268,7 @@ int read_ppm(int fd,
270} 268}
271 269
272/* this is the plugin entry point */ 270/* this is the plugin entry point */
273enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) 271enum plugin_status plugin_start(const void* parameter)
274{ 272{
275 static char filename[MAX_PATH]; 273 static char filename[MAX_PATH];
276 int fd; 274 int fd;
@@ -285,8 +283,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame
285 283
286 if(!parameter) return PLUGIN_ERROR; 284 if(!parameter) return PLUGIN_ERROR;
287 285
288 rb = api;
289
290 rb->strcpy(filename, parameter); 286 rb->strcpy(filename, parameter);
291 287
292 fd = rb->open(filename, O_RDONLY); 288 fd = rb->open(filename, O_RDONLY);