=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/bc/bc.y,v retrieving revision 1.5 retrieving revision 1.6 diff -c -r1.5 -r1.6 *** src/usr.bin/bc/bc.y 2003/09/26 19:06:46 1.5 --- src/usr.bin/bc/bc.y 2003/09/26 19:26:16 1.6 *************** *** 1,5 **** %{ ! /* $OpenBSD: bc.y,v 1.5 2003/09/26 19:06:46 deraadt Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek --- 1,5 ---- %{ ! /* $OpenBSD: bc.y,v 1.6 2003/09/26 19:26:16 deraadt Exp $ */ /* * Copyright (c) 2003, Otto Moerbeek *************** *** 31,37 **** */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: bc.y,v 1.5 2003/09/26 19:06:46 deraadt Exp $"; #endif /* not lint */ #include --- 31,37 ---- */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: bc.y,v 1.6 2003/09/26 19:26:16 deraadt Exp $"; #endif /* not lint */ #include *************** *** 702,709 **** if (yyin == NULL) err(1, "cannot open %s", filename); return 0; ! } ! else if (optind == sargc) { optind++; yyin = stdin; filename = "stdin"; --- 702,708 ---- if (yyin == NULL) err(1, "cannot open %s", filename); return 0; ! } else if (optind == sargc) { optind++; yyin = stdin; filename = "stdin"; *************** *** 794,801 **** dup(p[1]); close(p[0]); close(p[1]); ! } ! else { signal(SIGINT, SIG_IGN); close(STDIN_FILENO); dup(p[0]); --- 793,799 ---- dup(p[1]); close(p[0]); close(p[1]); ! } else { signal(SIGINT, SIG_IGN); close(STDIN_FILENO); dup(p[0]);