BSD 4_1_snap release
[unix-history] / usr / src / lib / libpc / FLUSH.c
index 0471e04..5de26fd 100644 (file)
@@ -1,16 +1,15 @@
 /* Copyright (c) 1979 Regents of the University of California */
 
 /* Copyright (c) 1979 Regents of the University of California */
 
-static char sccsid[] = "@(#)FLUSH.c 1.1 10/29/80";
+static char sccsid[] = "@(#)FLUSH.c 1.2 6/10/81";
 
 #include "h00vars.h"
 
 #include "h00vars.h"
-#include "h01errs.h"
 
 FLUSH(curfile)
 
        register struct iorec   *curfile;
 {
        if (curfile->fblk >= MAXFILES || _actfile[curfile->fblk] != curfile) {
 
 FLUSH(curfile)
 
        register struct iorec   *curfile;
 {
        if (curfile->fblk >= MAXFILES || _actfile[curfile->fblk] != curfile) {
-               ERROR(ENOFILE, 0);
+               ERROR("Reference to an inactive file\n", 0);
                return;
        }
        if (curfile->funit & FWRITE) {
                return;
        }
        if (curfile->funit & FWRITE) {