=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/m4/eval.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/m4/eval.c 1996/06/26 05:36:11 1.4 --- src/usr.bin/m4/eval.c 1996/07/01 20:40:27 1.5 *************** *** 1,4 **** ! /* $OpenBSD: eval.c,v 1.4 1996/06/26 05:36:11 deraadt Exp $ */ /* $NetBSD: eval.c,v 1.5 1996/01/13 23:25:23 pk Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: eval.c,v 1.5 1996/07/01 20:40:27 deraadt Exp $ */ /* $NetBSD: eval.c,v 1.5 1996/01/13 23:25:23 pk Exp $ */ /* *************** *** 41,47 **** #if 0 static char sccsid[] = "@(#)eval.c 8.2 (Berkeley) 4/27/95"; #else ! static char rcsid[] = "$OpenBSD: eval.c,v 1.4 1996/06/26 05:36:11 deraadt Exp $"; #endif #endif /* not lint */ --- 41,47 ---- #if 0 static char sccsid[] = "@(#)eval.c 8.2 (Berkeley) 4/27/95"; #else ! static char rcsid[] = "$OpenBSD: eval.c,v 1.5 1996/07/01 20:40:27 deraadt Exp $"; #endif #endif /* not lint */ *************** *** 52,58 **** */ #include - #include #include #include #include --- 52,57 ---- *************** *** 665,682 **** dodiv(n) register int n; { - int fd; - if (n < 0 || n >= MAXOUT) n = 0; /* bitbucket */ if (outfile[n] == NULL) { m4temp[UNIQUE] = n + '0'; ! if ((fd = open(m4temp, O_RDWR|O_EXCL|O_CREAT, 0666)) == -1 || ! (outfile[n] = fdopen(fd, "w")) == NULL) { ! if (fd != -1) ! close(fd); oops("%s: cannot divert.", m4temp); - } } oindex = n; active = outfile[n]; --- 664,675 ---- dodiv(n) register int n; { if (n < 0 || n >= MAXOUT) n = 0; /* bitbucket */ if (outfile[n] == NULL) { m4temp[UNIQUE] = n + '0'; ! if ((outfile[n] = fopen(m4temp, "w")) == NULL) oops("%s: cannot divert.", m4temp); } oindex = n; active = outfile[n];