summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/modem.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r--usr.sbin/ppp/modem.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c
index 428ab13cc87..62db126d5f5 100644
--- a/usr.sbin/ppp/modem.c
+++ b/usr.sbin/ppp/modem.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: modem.c,v 1.11 1998/01/29 00:35:34 brian Exp $
+ * $Id: modem.c,v 1.12 1998/02/19 02:02:47 brian Exp $
*
* TODO:
*/
@@ -738,18 +738,11 @@ CloseLogicalModem(void)
{
LogPrintf(LogDEBUG, "CloseLogicalModem\n");
if (modem >= 0) {
- ClosePhysicalModem();
if (Utmp) {
- struct utmp ut;
- strncpy(ut.ut_line, VarBaseDevice, sizeof ut.ut_line - 1);
- ut.ut_line[sizeof ut.ut_line - 1] = '\0';
- if (logout(ut.ut_line))
- logwtmp(ut.ut_line, "", "");
- else
- LogPrintf(LogERROR, "CloseLogicalModem: No longer logged in on %s\n",
- ut.ut_line);
+ ID0logout(VarBaseDevice);
Utmp = 0;
}
+ ClosePhysicalModem();
UnlockModem();
}
}