summaryrefslogtreecommitdiff
path: root/mysys/mf_iocache2.c
diff options
context:
space:
mode:
authormats@romeo.(none) <>2006-10-10 12:29:24 +0200
committermats@romeo.(none) <>2006-10-10 12:29:24 +0200
commit0b6ff112b241d73a34dff5f873af8840190efdb4 (patch)
tree25a00034edf4453e20aeb9059cae21ace0bf4f24 /mysys/mf_iocache2.c
parentb8941bbc8f853aca954429117c378f9df2864e8c (diff)
downloadmariadb-git-0b6ff112b241d73a34dff5f873af8840190efdb4.tar.gz
Fix to make it build on all platforms.
Replacing C++ code with C code in a C file.
Diffstat (limited to 'mysys/mf_iocache2.c')
-rw-r--r--mysys/mf_iocache2.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mysys/mf_iocache2.c b/mysys/mf_iocache2.c
index 57a06e263a6..895f03dc714 100644
--- a/mysys/mf_iocache2.c
+++ b/mysys/mf_iocache2.c
@@ -52,12 +52,13 @@ int
my_b_copy_to_file(IO_CACHE *cache, FILE *file)
{
byte buf[IO_SIZE];
+ uint bytes_in_cache;
DBUG_ENTER("my_b_copy_to_file");
/* Reinit the cache to read from the beginning of the cache */
if (reinit_io_cache(cache, READ_CACHE, 0L, FALSE, FALSE))
DBUG_RETURN(1);
- uint bytes_in_cache= my_b_bytes_in_cache(cache);
+ bytes_in_cache= my_b_bytes_in_cache(cache);
while (bytes_in_cache > 0) {
uint const read_bytes= min(bytes_in_cache, sizeof(buf));
DBUG_PRINT("debug", ("Remaining %u bytes - Reading %u bytes",