diff options
author | Ian Lance Taylor <iant@google.com> | 2007-12-20 21:21:24 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-12-20 21:21:24 +0000 |
commit | fe8718a4637d92b3cd991a8f1a22d6d0a09bc6dd (patch) | |
tree | 1d8c345aa0b876471ab9e73e4f22c04d65aa61bf /gold/output.h | |
parent | 1f7efbae406ff9f2e8967d508bfae665501dc8ae (diff) | |
download | gdb-fe8718a4637d92b3cd991a8f1a22d6d0a09bc6dd.zip gdb-fe8718a4637d92b3cd991a8f1a22d6d0a09bc6dd.tar.gz gdb-fe8718a4637d92b3cd991a8f1a22d6d0a09bc6dd.tar.bz2 |
Convert more instances of off_t to be 32-bit types.
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gold/output.h b/gold/output.h index a244fa5..895d703 100644 --- a/gold/output.h +++ b/gold/output.h @@ -2291,44 +2291,44 @@ class Output_file // Write data to the output file. void - write(off_t offset, const void* data, off_t len) + write(off_t offset, const void* data, size_t len) { memcpy(this->base_ + offset, data, len); } // Get a buffer to use to write to the file, given the offset into // the file and the size. unsigned char* - get_output_view(off_t start, off_t size) + get_output_view(off_t start, size_t size) { - gold_assert(start >= 0 && size >= 0 && start + size <= this->file_size_); + gold_assert(start >= 0 && start + size <= this->file_size_); return this->base_ + start; } // VIEW must have been returned by get_output_view. Write the // buffer to the file, passing in the offset and the size. void - write_output_view(off_t, off_t, unsigned char*) + write_output_view(off_t, size_t, unsigned char*) { } // Get a read/write buffer. This is used when we want to write part // of the file, read it in, and write it again. unsigned char* - get_input_output_view(off_t start, off_t size) + get_input_output_view(off_t start, size_t size) { return this->get_output_view(start, size); } // Write a read/write buffer back to the file. void - write_input_output_view(off_t, off_t, unsigned char*) + write_input_output_view(off_t, size_t, unsigned char*) { } // Get a read buffer. This is used when we just want to read part // of the file back it in. const unsigned char* - get_input_view(off_t start, off_t size) + get_input_view(off_t start, size_t size) { return this->get_output_view(start, size); } // Release a read bfufer. void - free_input_view(off_t, off_t, const unsigned char*) + free_input_view(off_t, size_t, const unsigned char*) { } private: |