diff options
Diffstat (limited to 'apps/plugins/test_disk.c')
-rw-r--r-- | apps/plugins/test_disk.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/plugins/test_disk.c b/apps/plugins/test_disk.c index 085435e4c9..2fa841b314 100644 --- a/apps/plugins/test_disk.c +++ b/apps/plugins/test_disk.c | |||
@@ -36,7 +36,6 @@ PLUGIN_HEADER | |||
36 | #endif | 36 | #endif |
37 | #define TEST_TIME 10 /* in seconds */ | 37 | #define TEST_TIME 10 /* in seconds */ |
38 | 38 | ||
39 | static const struct plugin_api* rb; | ||
40 | static unsigned char* audiobuf; | 39 | static unsigned char* audiobuf; |
41 | static ssize_t audiobuflen; | 40 | static ssize_t audiobuflen; |
42 | 41 | ||
@@ -405,7 +404,7 @@ static bool test_speed(void) | |||
405 | 404 | ||
406 | 405 | ||
407 | /* this is the plugin entry point */ | 406 | /* this is the plugin entry point */ |
408 | enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter) | 407 | enum plugin_status plugin_start(const void* parameter) |
409 | { | 408 | { |
410 | static const struct menu_item items[] = { | 409 | static const struct menu_item items[] = { |
411 | { "Disk speed", test_speed }, | 410 | { "Disk speed", test_speed }, |
@@ -416,7 +415,6 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
416 | DIR *dir; | 415 | DIR *dir; |
417 | 416 | ||
418 | (void)parameter; | 417 | (void)parameter; |
419 | rb = api; | ||
420 | 418 | ||
421 | if ((dir = rb->opendir(testbasedir)) == NULL) | 419 | if ((dir = rb->opendir(testbasedir)) == NULL) |
422 | { | 420 | { |
@@ -440,15 +438,15 @@ enum plugin_status plugin_start(const struct plugin_api* api, const void* parame | |||
440 | rb->srand(*rb->current_tick); | 438 | rb->srand(*rb->current_tick); |
441 | 439 | ||
442 | /* Turn off backlight timeout */ | 440 | /* Turn off backlight timeout */ |
443 | backlight_force_on(rb); /* backlight control in lib/helper.c */ | 441 | backlight_force_on(); /* backlight control in lib/helper.c */ |
444 | 442 | ||
445 | m = menu_init(rb, items, sizeof(items) / sizeof(*items), NULL, | 443 | m = menu_init(items, sizeof(items) / sizeof(*items), NULL, |
446 | NULL, NULL, NULL); | 444 | NULL, NULL, NULL); |
447 | menu_run(m); | 445 | menu_run(m); |
448 | menu_exit(m); | 446 | menu_exit(m); |
449 | 447 | ||
450 | /* Turn on backlight timeout (revert to settings) */ | 448 | /* Turn on backlight timeout (revert to settings) */ |
451 | backlight_use_settings(rb); /* backlight control in lib/helper.c */ | 449 | backlight_use_settings(); /* backlight control in lib/helper.c */ |
452 | 450 | ||
453 | rb->rmdir(testbasedir); | 451 | rb->rmdir(testbasedir); |
454 | 452 | ||