aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/modem.c
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>1998-03-10 03:06:07 +0000
committerBrian Somers <brian@FreeBSD.org>1998-03-10 03:06:07 +0000
commitfc1141b27b9b5382fd4b7405faa4b81de561baf4 (patch)
treec4231d0dccf63fa535d25c1679e0aee06dc3fd2c /usr.sbin/ppp/modem.c
parentab886ad0f6404d3f8745d96f98bae5f81dbd43c3 (diff)
downloadsrc-fc1141b27b9b5382fd4b7405faa4b81de561baf4.tar.gz
src-fc1141b27b9b5382fd4b7405faa4b81de561baf4.zip
Move `Utmp' into struct physical. We can be logged in
once for every -direct physical connection.
Notes
Notes: svn path=/cvs2svn/branches/MP/; revision=34446
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r--usr.sbin/ppp/modem.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c
index 8f68eb18f0aa..49e4c1e35c05 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.77.2.28 1998/03/06 00:34:44 brian Exp $
+ * $Id: modem.c,v 1.77.2.29 1998/03/09 19:24:57 brian Exp $
*
* TODO:
*/
@@ -36,7 +36,6 @@
#include <sys/ioctl.h>
#include <sys/tty.h>
#include <unistd.h>
-#include <utmp.h>
#ifdef __OpenBSD__
#include <util.h>
#else
@@ -127,6 +126,8 @@ modem_Create(const char *name)
*p->name.full = '\0';
p->name.base = p->name.full;
+ p->Utmp = 0;
+
p->cfg.is_direct = 0; /* not yet used */
p->cfg.is_dedicated = 0; /* not yet used */
p->cfg.rts_cts = MODEM_CTSRTS;
@@ -847,10 +848,7 @@ modem_LogicalClose(struct physical *modem)
{
LogPrintf(LogDEBUG, "modem_LogicalClose\n");
if (modem->fd >= 0) {
- if (Utmp) {
- ID0logout(modem->name.base);
- Utmp = 0;
- }
+ Physical_Logout(modem);
modem_PhysicalClose(modem);
modem_Unlock(modem);
}