From e97a900506c59b99f44da8effdf4d15532451e87 Mon Sep 17 00:00:00 2001 From: uchida Date: Mon, 24 May 2010 10:49:36 +0000 Subject: [PATCH] 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 --- apps/buffering.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/buffering.c b/apps/buffering.c index 371cf2210..8a6418fd2 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; } -- 2.11.4.GIT