fix one more size_t/ssize_t misuse
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25885 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
8d4ff638b9
commit
1c9cc6846c
1 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue