diff options
author | Brandon Low <lostlogic@rockbox.org> | 2007-11-08 18:59:22 +0000 |
---|---|---|
committer | Brandon Low <lostlogic@rockbox.org> | 2007-11-08 18:59:22 +0000 |
commit | dc0f497a4fb73148ff9107cb8f8e49243ac5d3fb (patch) | |
tree | 9aec3bebe2a93c508d3a10dda74de7612d68cd24 /apps/buffering.c | |
parent | b50473ffd8c0a693d6cd2247afa2e12b1cdec675 (diff) | |
download | rockbox-dc0f497a4fb73148ff9107cb8f8e49243ac5d3fb.tar.gz rockbox-dc0f497a4fb73148ff9107cb8f8e49243ac5d3fb.zip |
No functional change
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15542 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/buffering.c')
-rw-r--r-- | apps/buffering.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index 0a26673696..edfb8e758a 100644 --- a/apps/buffering.c +++ b/apps/buffering.c | |||
@@ -974,8 +974,8 @@ int bufadvance(int handle_id, off_t offset) | |||
974 | * actual amount of data available for reading. This function explicitly | 974 | * actual amount of data available for reading. This function explicitly |
975 | * does not check the validity of the input handle. It does do range checks | 975 | * does not check the validity of the input handle. It does do range checks |
976 | * on size and returns a valid (and explicit) amount of data for reading */ | 976 | * on size and returns a valid (and explicit) amount of data for reading */ |
977 | static struct memory_handle *prep_bufdata(int handle_id, size_t *size, | 977 | static struct memory_handle *prep_bufdata(const int handle_id, size_t *size, |
978 | bool guardbuf_limit) | 978 | const bool guardbuf_limit) |
979 | { | 979 | { |
980 | struct memory_handle *h = find_handle(handle_id); | 980 | struct memory_handle *h = find_handle(handle_id); |
981 | if (!h) | 981 | if (!h) |
@@ -1005,7 +1005,7 @@ static struct memory_handle *prep_bufdata(int handle_id, size_t *size, | |||
1005 | if (h->filerem > 0 && avail < *size) | 1005 | if (h->filerem > 0 && avail < *size) |
1006 | { | 1006 | { |
1007 | /* Data isn't ready. Request buffering */ | 1007 | /* Data isn't ready. Request buffering */ |
1008 | buf_request_buffer_handle(h->id); | 1008 | buf_request_buffer_handle(handle_id); |
1009 | /* Wait for the data to be ready */ | 1009 | /* Wait for the data to be ready */ |
1010 | do | 1010 | do |
1011 | { | 1011 | { |