aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/physical.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1999-05-13 19:29:40 +0000
committerBrian Somers <brian@FreeBSD.org>1999-05-13 19:29:40 +0000
commit27be3ac6628467b0b3aae35750973e016a1417a8 (patch)
tree238d2febfcf16bb0b07bc41bd2c44cdbc9e6400d /usr.sbin/ppp/physical.c
parent29d97436c5c15edc15c42ec702a0d2296e502123 (diff)
downloadsrc-27be3ac6628467b0b3aae35750973e016a1417a8.tar.gz
src-27be3ac6628467b0b3aae35750973e016a1417a8.zip
Initialise the struct device part of struct ttydevice.
Notes
Notes: svn path=/head/; revision=47124
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 b9b8d23baa61..05ff19a5fdb5 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;