diff 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
line wrap: on
line diff
--- a/create.cpp	Wed Nov 12 10:21:06 2008 +0000
+++ b/create.cpp	Wed Nov 12 15:40:40 2008 +0000
@@ -78,7 +78,7 @@
     dbH->dbSize = dbH->l2normTableOffset;
   } 
 
-  write(dbfid, dbH, O2_HEADERSIZE);
+  CHECKED_WRITE(dbfid, dbH, O2_HEADERSIZE);
 
   // go to the location corresponding to the last byte
   if (lseek (dbfid, dbH->dbSize - 1, SEEK_SET) == -1)