/*
* Have we hit EOF yet?
*/
-static int eof;
+static int hit_eof;
/* JF we're reading, but we just read the last record and its time to update */
extern time_to_start_writing;
void
reset_eof()
{
- if(eof) {
- eof=0;
+ if(hit_eof) {
+ hit_eof=0;
ar_record=ar_block;
ar_last=ar_block+blocking;
ar_reading=0;
findrec()
{
if (ar_record == ar_last) {
- if (eof)
+ if (hit_eof)
return (union record *)NULL; /* EOF */
flush_archive();
if (ar_record == ar_last) {
- eof++;
+ hit_eof++;
return (union record *)NULL; /* EOF */
}
}
msg_perror("can't open %s",ar_file);
exit(EX_BADARCH);
}
-
#ifndef __MSDOS__
if(!_isrmt(archive)) {
struct stat tmp_stat;