summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-05-24 10:49:36 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-05-24 10:49:36 +0000
commit9c13b6e7c68776f930867c038fb3ad006a4ea8ab (patch)
tree855b87e4201c7f79e67343c4b3dc2d3002b322d3 /apps
parentff6b0425e438add8d12393f90fdbfe93e1fb4746 (diff)
downloadrockbox-9c13b6e7c68776f930867c038fb3ad006a4ea8ab.tar.gz
rockbox-9c13b6e7c68776f930867c038fb3ad006a4ea8ab.zip
fix: when move_handle() is successful, the return value
corrects valid type. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26249 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/buffering.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index 371cf22103..8a6418fd22 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -424,11 +424,11 @@ static struct memory_handle *find_handle(int handle_id)
424 delta maximum bytes available to move the handle. If the move is performed 424 delta maximum bytes available to move the handle. If the move is performed
425 it is set to the actual distance moved. 425 it is set to the actual distance moved.
426 data_size is the amount of data to move along with the struct. 426 data_size is the amount of data to move along with the struct.
427 returns a valid memory_handle if the move is successful 427 returns true if the move is successful and false if the handle is NULL,
428 NULL if the handle is NULL, the move would be less than the size of 428 the move would be less than the size of a memory_handle after
429 a memory_handle after correcting for wraps or if the handle is not 429 correcting for wraps or if the handle is not found in the linked
430 found in the linked list for adjustment. This function has no side 430 list for adjustment. This function has no side effects if false
431 effects if NULL is returned. */ 431 is returned. */
432static bool move_handle(struct memory_handle **h, size_t *delta, 432static bool move_handle(struct memory_handle **h, size_t *delta,
433 size_t data_size, bool can_wrap) 433 size_t data_size, bool can_wrap)
434{ 434{
@@ -552,7 +552,7 @@ static bool move_handle(struct memory_handle **h, size_t *delta,
552 *delta = final_delta; 552 *delta = final_delta;
553 mutex_unlock(&llist_mod_mutex); 553 mutex_unlock(&llist_mod_mutex);
554 mutex_unlock(&llist_mutex); 554 mutex_unlock(&llist_mutex);
555 return dest; 555 return true;
556} 556}
557 557
558 558