=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tset/Attic/term.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/tset/Attic/term.c 1996/06/26 05:41:57 1.2 --- src/usr.bin/tset/Attic/term.c 1997/01/17 07:13:44 1.3 *************** *** 1,4 **** ! /* $OpenBSD: term.c,v 1.2 1996/06/26 05:41:57 deraadt Exp $ */ /* $NetBSD: term.c,v 1.6 1994/12/07 05:08:12 jtc Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: term.c,v 1.3 1997/01/17 07:13:44 millert Exp $ */ /* $NetBSD: term.c,v 1.6 1994/12/07 05:08:12 jtc Exp $ */ /*- *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93"; #endif ! static char rcsid[] = "$OpenBSD: term.c,v 1.2 1996/06/26 05:41:57 deraadt Exp $"; #endif /* not lint */ #include --- 38,44 ---- #if 0 static char sccsid[] = "@(#)term.c 8.1 (Berkeley) 6/9/93"; #endif ! static char rcsid[] = "$OpenBSD: term.c,v 1.3 1997/01/17 07:13:44 millert Exp $"; #endif /* not lint */ #include *************** *** 78,84 **** /* Try ttyname(3); check for dialup or other mapping. */ if (ttypath = ttyname(STDERR_FILENO)) { ! if (p = rindex(ttypath, '/')) ++p; else p = ttypath; --- 78,84 ---- /* Try ttyname(3); check for dialup or other mapping. */ if (ttypath = ttyname(STDERR_FILENO)) { ! if (p = strrchr(ttypath, '/')) ++p; else p = ttypath; *************** *** 151,157 **** return (dflt); } ! if (p = index(answer, '\n')) *p = '\0'; if (answer[0]) return (answer); --- 151,157 ---- return (dflt); } ! if (p = strchr(answer, '\n')) *p = '\0'; if (answer[0]) return (answer);