diff options
Diffstat (limited to 'mysys/my_pread.c')
-rw-r--r-- | mysys/my_pread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_pread.c b/mysys/my_pread.c index 74bb7783af5..4e0de71bcf5 100644 --- a/mysys/my_pread.c +++ b/mysys/my_pread.c @@ -80,7 +80,6 @@ uint my_pread(File Filedes, byte *Buffer, uint Count, my_off_t offset, uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset, myf MyFlags) { - int error; uint writenbytes,errors; ulong written; DBUG_ENTER("my_pwrite"); @@ -91,6 +90,7 @@ uint my_pwrite(int Filedes, const byte *Buffer, uint Count, my_off_t offset, for (;;) { #ifndef HAVE_PREAD + int error; writenbytes= (uint) -1; pthread_mutex_lock(&my_file_info[Filedes].mutex); error=(lseek(Filedes, offset, MY_SEEK_SET) != -1L && |