Update for double filerecord announces

This commit is contained in:
Michiel Broek 2004-05-10 10:44:37 +00:00
parent 4e6a5d5e33
commit 27822b7d24
2 changed files with 2 additions and 1 deletions

View File

@ -43,6 +43,7 @@ v0.51.4 11-Apr-2004
More debug logging info added for double filename announces.
Added new experimental files database code which will only be
used if configured with --enable-experiment.
Another small change for double filename announces.
mbfile:
The toberep command now logs the toberep.data in the debug

View File

@ -70,7 +70,7 @@ int Add_ToBeRep(struct _filerecord report)
rc = fseek(tbr, - sizeof(Temp), SEEK_CUR);
Syslog('f', "fseek rc=%d, size=%d", rc, sizeof(Temp));
Syslog('f', "Position before update is now %d", ftell(tbr));
rc = fwrite(&report, sizeof(report), 1, tbr);
rc = fwrite(&report, sizeof(Temp), 1, tbr);
Syslog('f', "Written %d, position after update is now %d", rc, ftell(tbr));
fclose(tbr);
return TRUE;