summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/physical.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-05-13 19:29:40 +0000
committerbrian <brian@FreeBSD.org>1999-05-13 19:29:40 +0000
commitbc576fdb28e703a8f2cca219067e976735d3815d (patch)
treea636b4a3f920f461b02bf8d2aae8cb6594e3a1b4 /usr.sbin/ppp/physical.c
parent2ff48aab7d0e0a07f0f6d5b2f85fc3b8b0aaf5b6 (diff)
downloadFreeBSD-src-bc576fdb28e703a8f2cca219067e976735d3815d.zip
FreeBSD-src-bc576fdb28e703a8f2cca219067e976735d3815d.tar.gz
Initialise the struct device part of struct ttydevice.
Diffstat (limited to 'usr.sbin/ppp/physical.c')
-rw-r--r--usr.sbin/ppp/physical.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.sbin/ppp/physical.c b/usr.sbin/ppp/physical.c
index b9b8d23..05ff19a 100644
--- a/usr.sbin/ppp/physical.c
+++ b/usr.sbin/ppp/physical.c
@@ -16,7 +16,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: physical.c,v 1.10 1999/05/09 20:13:51 brian Exp $
+ * $Id: physical.c,v 1.11 1999/05/12 09:48:56 brian Exp $
*
*/
@@ -803,12 +803,11 @@ physical_Open(struct physical *p, struct bundle *bundle)
for (h = 0; h < NDEVICES && p->handler == NULL && p->fd >= 0; h++)
p->handler = (*devices[h].create)(p);
if (p->fd >= 0) {
- if (p->handler == NULL)
+ if (p->handler == NULL) {
physical_SetupStack(p, PHYSICAL_NOFORCE);
+ log_Printf(LogDEBUG, "%s: stdin is unidentified\n", p->link.name);
+ }
physical_Found(p);
- if (p->handler == NULL)
- log_Printf(LogDEBUG, "%s: stdin is unidentified\n",
- p->link.name);
}
} else {
dev = p->cfg.devlist;
OpenPOWER on IntegriCloud