Commits

Robert Lowry committed ed9d558

cw: small typo

Comments (0)

Files changed (1)

 			err(1, "kevent read");
 
 		if (event.filter == EVFILT_READ) {
-			while (fgets(buf, sizeof(buf), in))
-				fputs(buf, stdout);
+			while (fgets(buf, sizeof(buf), stdin))
+				fputs(buf, out);
 		} else if (event.filter == EVFILT_VNODE) {
 			if(event.fflags & NOTE_DELETE) {
-				fprintf(stderr,"cw: input file deleted!");
+				fprintf(stderr,"cw: input file deleted");
 				exit 0;
 			}
 			if(event.fflags & NOTE_EXTEND || event.fflags & NOTE_WRITE) {