BSD 4_3 release
[unix-history] / usr / src / usr.lib / libpc / UNSYNC.c
index d28dff6..1fe4f60 100644 (file)
@@ -1,6 +1,6 @@
 /* Copyright (c) 1979 Regents of the University of California */
 
 /* Copyright (c) 1979 Regents of the University of California */
 
-static char sccsid[] = "@(#)UNSYNC.c 1.3 6/10/81";
+static char sccsid[] = "@(#)UNSYNC.c 1.4 10/28/83";
 
 #include "h00vars.h"
 
 
 #include "h00vars.h"
 
@@ -23,4 +23,6 @@ UNSYNC(curfile)
        if ((curfile->funit & SYNC) == 0) {
                ungetc(*curfile->fileptr, curfile->fbuf);
        }
        if ((curfile->funit & SYNC) == 0) {
                ungetc(*curfile->fileptr, curfile->fbuf);
        }
+       curfile->funit &= ~EOLN;
+       curfile->funit |= SYNC;
 }
 }