projects
/
unix-history
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
BSD 4_3 release
[unix-history]
/
usr
/
src
/
usr.lib
/
libpc
/
UNSYNC.c
diff --git
a/usr/src/usr.lib/libpc/UNSYNC.c
b/usr/src/usr.lib/libpc/UNSYNC.c
index
d28dff6
..
1fe4f60
100644
(file)
--- a/
usr/src/usr.lib/libpc/UNSYNC.c
+++ b/
usr/src/usr.lib/libpc/UNSYNC.c
@@
-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;
}
}