diff options
author | brian <brian@FreeBSD.org> | 1999-10-25 13:49:44 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 1999-10-25 13:49:44 +0000 |
commit | faf44b90cf2e4d2d75fff652e8cb0061ebab8994 (patch) | |
tree | b36fb5cffe5612b95ee430fdf57bd17fca7266f3 /usr.sbin/ppp/chat.c | |
parent | 6d6b73fcc1ed1fbea8e5b101a078ef2894fd5c1b (diff) | |
download | FreeBSD-src-faf44b90cf2e4d2d75fff652e8cb0061ebab8994.zip FreeBSD-src-faf44b90cf2e4d2d75fff652e8cb0061ebab8994.tar.gz |
Introduce ``set logout''; another chat script. This is in preparation
for the abstraction of ``set dial'' and ``set hangup''.
Diffstat (limited to 'usr.sbin/ppp/chat.c')
-rw-r--r-- | usr.sbin/ppp/chat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chat.c b/usr.sbin/ppp/chat.c index 86fd40b..f3bc7d6 100644 --- a/usr.sbin/ppp/chat.c +++ b/usr.sbin/ppp/chat.c @@ -531,7 +531,7 @@ chat_Write(struct descriptor *d, struct bundle *bundle, const fd_set *fdset) } void -chat_Init(struct chat *c, struct physical *p, const char *data, int emptybuf, +chat_Init(struct chat *c, struct physical *p, const char *data, const char *phone) { c->desc.type = CHAT_DESCRIPTOR; @@ -556,7 +556,7 @@ chat_Init(struct chat *c, struct physical *p, const char *data, int emptybuf, c->argptr = NULL; c->nargptr = NULL; - if (emptybuf) + if (c->bufstart == NULL) c->bufstart = c->bufend = c->buf; c->TimeoutSec = 30; |