diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2010-05-07 19:35:09 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2010-05-07 19:35:09 +0000 |
commit | 1c9cc6846cd9988fc2daea3c87ff15ecfe4df3d9 (patch) | |
tree | 6bfe61a3ba5398a561023ddc435617884dfb98c1 /apps/plugins/imageviewer/imageviewer.c | |
parent | 8d4ff638b9a79abcefe538eef8f1933c0c0decf9 (diff) | |
download | rockbox-1c9cc6846cd9988fc2daea3c87ff15ecfe4df3d9.tar.gz rockbox-1c9cc6846cd9988fc2daea3c87ff15ecfe4df3d9.zip |
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/imageviewer.c')
-rw-r--r-- | apps/plugins/imageviewer/imageviewer.c | 10 |
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 | |||
100 | static char print[32]; /* use a common snprintf() buffer */ | 100 | static char print[32]; /* use a common snprintf() buffer */ |
101 | /* the remaining free part of the buffer for loaded+resized images */ | 101 | /* the remaining free part of the buffer for loaded+resized images */ |
102 | static unsigned char* buf; | 102 | static unsigned char* buf; |
103 | static ssize_t buf_size; | 103 | static size_t buf_size; |
104 | 104 | ||
105 | static int ds, ds_min, ds_max; /* downscaling and limits */ | 105 | static int ds, ds_min, ds_max; /* downscaling and limits */ |
106 | static struct image_info image_info; | 106 | static struct image_info image_info; |
@@ -346,7 +346,7 @@ static int ask_and_get_audio_buffer(const char *filename) | |||
346 | { | 346 | { |
347 | case IMGVIEW_ZOOM_IN: | 347 | case IMGVIEW_ZOOM_IN: |
348 | plug_buf = false; | 348 | plug_buf = false; |
349 | buf = rb->plugin_get_audio_buffer((size_t *)&buf_size); | 349 | buf = rb->plugin_get_audio_buffer(&buf_size); |
350 | /*try again this file, now using the audio buffer */ | 350 | /*try again this file, now using the audio buffer */ |
351 | return PLUGIN_OTHER; | 351 | return PLUGIN_OTHER; |
352 | #ifdef IMGVIEW_RC_MENU | 352 | #ifdef IMGVIEW_RC_MENU |
@@ -866,9 +866,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
866 | if(!parameter) return PLUGIN_ERROR; | 866 | if(!parameter) return PLUGIN_ERROR; |
867 | 867 | ||
868 | #ifdef USE_PLUG_BUF | 868 | #ifdef USE_PLUG_BUF |
869 | buf = rb->plugin_get_buffer((size_t *)&buf_size); | 869 | buf = rb->plugin_get_buffer(&buf_size); |
870 | #else | 870 | #else |
871 | buf = rb->plugin_get_audio_buffer((size_t *)&buf_size); | 871 | buf = rb->plugin_get_audio_buffer(&buf_size); |
872 | #endif | 872 | #endif |
873 | 873 | ||
874 | rb->strcpy(np_file, parameter); | 874 | rb->strcpy(np_file, parameter); |
@@ -880,7 +880,7 @@ enum plugin_status plugin_start(const void* parameter) | |||
880 | if(!rb->audio_status()) | 880 | if(!rb->audio_status()) |
881 | { | 881 | { |
882 | plug_buf = false; | 882 | plug_buf = false; |
883 | buf = rb->plugin_get_audio_buffer((size_t *)&buf_size); | 883 | buf = rb->plugin_get_audio_buffer(&buf_size); |
884 | } | 884 | } |
885 | #endif | 885 | #endif |
886 | 886 | ||