diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/buffering.c | 12 |
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; } |