summaryrefslogtreecommitdiffstats
path: root/apps/buffering.c
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/buffering.c
parentff6b0425e438add8d12393f90fdbfe93e1fb4746 (diff)
downloadrockbox-9c13b6e7c68776f930867c038fb3ad006a4ea8ab.tar.gz
rockbox-9c13b6e7c68776f930867c038fb3ad006a4ea8ab.tar.bz2
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/buffering.c')
-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)
delta maximum bytes available to move the handle. If the move is performed
it is set to the actual distance moved.
data_size is the amount of data to move along with the struct.
- returns a valid memory_handle if the move is successful
- NULL if the handle is NULL, the move would be less than the size of
- a memory_handle after correcting for wraps or if the handle is not
- found in the linked list for adjustment. This function has no side
- effects if NULL is returned. */
+ returns true if the move is successful and false if the handle is NULL,
+ the move would be less than the size of a memory_handle after
+ correcting for wraps or if the handle is not found in the linked
+ list for adjustment. This function has no side effects if false
+ is returned. */
static bool move_handle(struct memory_handle **h, size_t *delta,
size_t data_size, bool can_wrap)
{
@@ -552,7 +552,7 @@ static bool move_handle(struct memory_handle **h, size_t *delta,
*delta = final_delta;
mutex_unlock(&llist_mod_mutex);
mutex_unlock(&llist_mutex);
- return dest;
+ return true;
}