diff options
author | davidn <davidn@FreeBSD.org> | 1997-09-01 10:06:05 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-09-01 10:06:05 +0000 |
commit | 83eefff2e6e23c94d79fc82cee7d706f861a3b46 (patch) | |
tree | 4744fc54c295a6cafed84e673397b502c055d271 | |
parent | 00e1cd92d7f717056507c66d4086018dc4bc0141 (diff) | |
download | FreeBSD-src-83eefff2e6e23c94d79fc82cee7d706f861a3b46.zip FreeBSD-src-83eefff2e6e23c94d79fc82cee7d706f861a3b46.tar.gz |
Use cgetustr() since we handled special escapes ourselves.
Fix typo in escape parsing function.
PR: 4370
Submitted by: sumii@is.s.u-tokyo.ac.jp
-rw-r--r-- | libexec/getty/chat.c | 4 | ||||
-rw-r--r-- | libexec/getty/subr.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libexec/getty/chat.c b/libexec/getty/chat.c index 2474195..964564e 100644 --- a/libexec/getty/chat.c +++ b/libexec/getty/chat.c @@ -22,7 +22,7 @@ * Modem chat module - send/expect style functions for getty * For semi-intelligent modem handling. * - * $Id$ + * $Id: chat.c,v 1.3 1997/02/22 14:21:36 peter Exp $ */ #include <sys/param.h> @@ -223,7 +223,7 @@ read_chat(chatstr) } } else { /* copy standard character */ - *r++ == *q; + *r++ = *q; } } diff --git a/libexec/getty/subr.c b/libexec/getty/subr.c index 84cbefb..8e421d3 100644 --- a/libexec/getty/subr.c +++ b/libexec/getty/subr.c @@ -33,7 +33,7 @@ #ifndef lint /*static char sccsid[] = "from: @(#)subr.c 8.1 (Berkeley) 6/4/93";*/ -static char rcsid[] = "$Id: subr.c,v 1.9 1997/02/22 14:21:40 peter Exp $"; +static char rcsid[] = "$Id: subr.c,v 1.10 1997/05/11 10:25:38 davidn Exp $"; #endif /* not lint */ /* @@ -132,7 +132,7 @@ gettable(name, buf) } for (sp = gettystrs; sp->field; sp++) { - if ((l = cgetstr(buf, (char*)sp->field, &p)) >= 0) { + if ((l = cgetustr(buf, (char*)sp->field, &p)) >= 0) { if (sp->value) { /* prefer existing value */ if (strcmp(p, sp->value) != 0) @@ -170,7 +170,7 @@ gettable(name, buf) #ifdef DEBUG printf("name=\"%s\", buf=\"%s\"\r\n", name, buf); for (sp = gettystrs; sp->field; sp++) - printf("cgetstr: %s=%s\r\n", sp->field, sp->value); + printf("cgetustr: %s=%s\r\n", sp->field, sp->value); for (np = gettynums; np->field; np++) printf("cgetnum: %s=%d\r\n", np->field, np->value); for (fp = gettyflags; fp->field; fp++) |