summaryrefslogtreecommitdiffstats
path: root/apps/plugins/imageviewer/imageviewer.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/imageviewer/imageviewer.c')
-rw-r--r--apps/plugins/imageviewer/imageviewer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c
index f82ba771a9..d258cf3433 100644
--- a/apps/plugins/imageviewer/imageviewer.c
+++ b/apps/plugins/imageviewer/imageviewer.c
@@ -100,7 +100,7 @@ static fb_data rgb_linebuf[LCD_WIDTH]; /* Line buffer for scrolling when
static char print[32]; /* use a common snprintf() buffer */
/* the remaining free part of the buffer for loaded+resized images */
static unsigned char* buf;
-static ssize_t buf_size;
+static size_t buf_size;
static int ds, ds_min, ds_max; /* downscaling and limits */
static struct image_info image_info;
@@ -346,7 +346,7 @@ static int ask_and_get_audio_buffer(const char *filename)
{
case IMGVIEW_ZOOM_IN:
plug_buf = false;
- buf = rb->plugin_get_audio_buffer((size_t *)&buf_size);
+ buf = rb->plugin_get_audio_buffer(&buf_size);
/*try again this file, now using the audio buffer */
return PLUGIN_OTHER;
#ifdef IMGVIEW_RC_MENU
@@ -866,9 +866,9 @@ enum plugin_status plugin_start(const void* parameter)
if(!parameter) return PLUGIN_ERROR;
#ifdef USE_PLUG_BUF
- buf = rb->plugin_get_buffer((size_t *)&buf_size);
+ buf = rb->plugin_get_buffer(&buf_size);
#else
- buf = rb->plugin_get_audio_buffer((size_t *)&buf_size);
+ buf = rb->plugin_get_audio_buffer(&buf_size);
#endif
rb->strcpy(np_file, parameter);
@@ -880,7 +880,7 @@ enum plugin_status plugin_start(const void* parameter)
if(!rb->audio_status())
{
plug_buf = false;
- buf = rb->plugin_get_audio_buffer((size_t *)&buf_size);
+ buf = rb->plugin_get_audio_buffer(&buf_size);
}
#endif