Mercurial > hg > audiodb
comparison create.cpp @ 370:2d5c3f8e8c22
Merge gcc-4.3-cleanups branch (-r629:642, but I consider that branch as
having served its purpose) onto the trunk.
Now compiles cleanly even with a fairly picky gcc. I await version 4.4
with bated breath.
author | mas01cr |
---|---|
date | Wed, 12 Nov 2008 15:40:40 +0000 |
parents | c93be2f3a674 |
children | 4e68f7d4d524 f9d86b1db21c 282c651e2fbb |
comparison
equal
deleted
inserted
replaced
355:94c18f128ce8 | 370:2d5c3f8e8c22 |
---|---|
76 dbH->powerTableOffset = ALIGN_PAGE_UP(dbH->timesTableOffset + O2_FILETABLE_ENTRY_SIZE*ntracks); | 76 dbH->powerTableOffset = ALIGN_PAGE_UP(dbH->timesTableOffset + O2_FILETABLE_ENTRY_SIZE*ntracks); |
77 dbH->l2normTableOffset = ALIGN_PAGE_UP(dbH->powerTableOffset + O2_FILETABLE_ENTRY_SIZE*ntracks); | 77 dbH->l2normTableOffset = ALIGN_PAGE_UP(dbH->powerTableOffset + O2_FILETABLE_ENTRY_SIZE*ntracks); |
78 dbH->dbSize = dbH->l2normTableOffset; | 78 dbH->dbSize = dbH->l2normTableOffset; |
79 } | 79 } |
80 | 80 |
81 write(dbfid, dbH, O2_HEADERSIZE); | 81 CHECKED_WRITE(dbfid, dbH, O2_HEADERSIZE); |
82 | 82 |
83 // go to the location corresponding to the last byte | 83 // go to the location corresponding to the last byte |
84 if (lseek (dbfid, dbH->dbSize - 1, SEEK_SET) == -1) | 84 if (lseek (dbfid, dbH->dbSize - 1, SEEK_SET) == -1) |
85 error("lseek error in db file", "", "lseek"); | 85 error("lseek error in db file", "", "lseek"); |
86 | 86 |