Better optimisation for hppa 7100LC cpu

This commit is contained in:
Michiel Broek
2004-09-25 10:47:33 +00:00
parent 4255e9d3b1
commit b605aba2d0
4 changed files with 13 additions and 6 deletions

View File

@@ -260,7 +260,7 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
Syslog('f', "mbsedb_InsertFDB: insertpoint=%d, found=%s, done=%s", Insert, Found?"true":"false", Done?"true":"false");
if (Found) {
// if (Found) {
if ((fp = fopen(temp, "a+")) == NULL) {
WriteError("$Can't create %s", temp);
mbsedb_UnlockFDB(fdb_area);
@@ -333,13 +333,13 @@ int mbsedb_InsertFDB(struct _fdbarea *fdb_area, struct FILE_record frec, int Add
mbsedb_Temp2Data(fdb_area->area);
fdb_area->fp = fp;
fdb_area->locked = 0;
} else {
// } else {
/*
* Append new entry
*/
fseek(fdb_area->fp, 0, SEEK_END);
fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
}
// fseek(fdb_area->fp, 0, SEEK_END);
// fwrite(&frec, fdbhdr.recsize, 1, fdb_area->fp);
// }
free(temp);