summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/chat.h
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-12-03 06:33:10 +0000
committerbrian <brian@FreeBSD.org>1999-12-03 06:33:10 +0000
commit0646335b2f5f7598da20e77bef0307600e5090c2 (patch)
treee7ed7b5062bdcdb2fd9076a534d57580850d607e /usr.sbin/ppp/chat.h
parent07cba0f9111a977a86c5f79554b6891a7e4f06a4 (diff)
downloadFreeBSD-src-0646335b2f5f7598da20e77bef0307600e5090c2.zip
FreeBSD-src-0646335b2f5f7598da20e77bef0307600e5090c2.tar.gz
Be careful not to re-initialise `struct stat' while it still has
a running timer. This fixes a problem where a dial is manually aborted, the hangup script kicks in and the chat timer ends up on the timer queue twice (tick tick tick tick *boom*)
Diffstat (limited to 'usr.sbin/ppp/chat.h')
-rw-r--r--usr.sbin/ppp/chat.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ppp/chat.h b/usr.sbin/ppp/chat.h
index 90d625d..872e1c6 100644
--- a/usr.sbin/ppp/chat.h
+++ b/usr.sbin/ppp/chat.h
@@ -76,6 +76,7 @@ struct chat {
((d)->type == CHAT_DESCRIPTOR ? (struct chat *)(d) : NULL)
#define VECSIZE(v) (sizeof(v) / sizeof(v[0]))
-extern void chat_Init(struct chat *, struct physical *, const char *,
- const char *);
+extern void chat_Init(struct chat *, struct physical *);
+extern void chat_Setup(struct chat *, const char *, const char *);
+extern void chat_Finish(struct chat *);
extern void chat_Destroy(struct chat *);
OpenPOWER on IntegriCloud