diff options
author | pixel <pixel> | 2007-07-09 19:14:34 +0000 |
---|---|---|
committer | pixel <pixel> | 2007-07-09 19:14:34 +0000 |
commit | a47cbe621febe11586f22c28a4507d74930d1737 (patch) | |
tree | 515cfc498a6249710edcdc114cf26c5344d9423d /mpq-bios.c | |
parent | d71a0bb87551712359702851576b3b01132622f6 (diff) |
ioctl removs some dumb stuff...
Diffstat (limited to 'mpq-bios.c')
-rw-r--r-- | mpq-bios.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -56,8 +56,6 @@ typedef struct { uint32_t file_block_index; } hash_t; -/* Defined in int-bios.h - typedef struct { uint64_t block_offset; uint32_t block_size; @@ -65,8 +63,6 @@ typedef struct { uint32_t flags; } block_t; -*/ - struct mpq_archive_t { int fd; int closeit; @@ -340,13 +336,6 @@ int mpqlib_find_hash_entry_by_hash(struct mpq_archive_t * mpq_a, uint32_t hA, ui return -1; } -const block_t * __mpqlib_get_block_entry(struct mpq_archive_t * mpq_a, int entry) { - if ((entry >= mpq_a->block_table_entries) || (entry < 0)) - return NULL; - - return mpq_a->blocks + entry; -} - int __mpqlib_seek(struct mpq_archive_t * mpq_a, off_t off) { if (lseek64(mpq_a->fd, off, SEEK_SET) != off) return 0; |