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
update from Rodney Ruddock
[unix-history]
/
usr
/
src
/
contrib
/
ed
/
w.c
diff --git
a/usr/src/contrib/ed/w.c
b/usr/src/contrib/ed/w.c
index
3e4a9cc
..
311f746
100644
(file)
--- a/
usr/src/contrib/ed/w.c
+++ b/
usr/src/contrib/ed/w.c
@@
-9,7
+9,7
@@
*/
#ifndef lint
*/
#ifndef lint
-static char sccsid[] = "@(#)w.c 5.
4
(Berkeley) %G%";
+static char sccsid[] = "@(#)w.c 5.
5
(Berkeley) %G%";
#endif /* not lint */
#include <sys/types.h>
#endif /* not lint */
#include <sys/types.h>
@@
-104,7
+104,7
@@
w(inputt, errnum)
/* Write it out and get a report on the number of bytes written. */
l_ttl = edwrite(fp, Start, End);
/* Write it out and get a report on the number of bytes written. */
l_ttl = edwrite(fp, Start, End);
- if (explain_flag
!= 0)
/* For -s option. */
+ if (explain_flag
> 0)
/* For -s option. */
printf("%d\n", l_ttl);
point: fclose(fp);
printf("%d\n", l_ttl);
point: fclose(fp);