strcpy(tempfilename, tmpnam(NULL));
/* First, back out all old version records to a flat file */
- cdb_begin_transaction();
cdb_rewind(CDB_USERSUPP);
while(cdbus = cdb_next_item(CDB_USERSUPP), cdbus != NULL) {
memset(&usbuf, 0, sizeof(struct pre555usersupp));
cdb_free(cdbus);
fwrite(&usbuf, sizeof(struct pre555usersupp), 1, fp);
}
- cdb_end_transaction();
/* ...and overwrite the records with new format records */
rewind(fp);