diff options
Diffstat (limited to 'apps/plugins/lib/buflib.c')
-rw-r--r-- | apps/plugins/lib/buflib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/lib/buflib.c b/apps/plugins/lib/buflib.c index 5d03ca4bb9..930e49d02e 100644 --- a/apps/plugins/lib/buflib.c +++ b/apps/plugins/lib/buflib.c | |||
@@ -23,8 +23,8 @@ | |||
23 | * | 23 | * |
24 | ****************************************************************************/ | 24 | ****************************************************************************/ |
25 | 25 | ||
26 | #include <stdlib.h> /* for abs() */ | ||
26 | #include "buflib.h" | 27 | #include "buflib.h" |
27 | |||
28 | /* The main goal of this design is fast fetching of the pointer for a handle. | 28 | /* The main goal of this design is fast fetching of the pointer for a handle. |
29 | * For that reason, the handles are stored in a table at the end of the buffer | 29 | * For that reason, the handles are stored in a table at the end of the buffer |
30 | * with a fixed address, so that returning the pointer for a handle is a simple | 30 | * with a fixed address, so that returning the pointer for a handle is a simple |
@@ -311,7 +311,7 @@ buflib_free(struct buflib_context *ctx, int handle_num) | |||
311 | while (next_block < freed_block) | 311 | while (next_block < freed_block) |
312 | { | 312 | { |
313 | block = next_block; | 313 | block = next_block; |
314 | next_block += ABS(block->val); | 314 | next_block += abs(block->val); |
315 | } | 315 | } |
316 | /* If next_block == block, the above loop didn't go anywhere. If it did, | 316 | /* If next_block == block, the above loop didn't go anywhere. If it did, |
317 | * and the block before this one is empty, we can combine them. | 317 | * and the block before this one is empty, we can combine them. |