summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-05-07 19:35:09 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-05-07 19:35:09 +0000
commit1c9cc6846cd9988fc2daea3c87ff15ecfe4df3d9 (patch)
tree6bfe61a3ba5398a561023ddc435617884dfb98c1 /apps/plugins/imageviewer
parent8d4ff638b9a79abcefe538eef8f1933c0c0decf9 (diff)
fix one more size_t/ssize_t misuse
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25885 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer')
-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