some small fixes

This commit is contained in:
Michiel Broek
2002-04-07 11:00:21 +00:00
parent 8bbc4154a7
commit 882f2af32c
2 changed files with 1 additions and 2 deletions

View File

@@ -217,7 +217,6 @@ void Cookie(void)
firstrandom = FALSE;
}
recno = 1+(int) (1.0 * records * rand() / (RAND_MAX + 1.0));
Syslog('f', "Selected quote %d out of %d records", recno, records);
if (fseek(olf, olhdr.hdrsize + (recno * olhdr.recsize), SEEK_SET) == 0) {
if (fread(&ol, olhdr.recsize, 1, olf) == 1) {