--- rxvt-unicode/src/logging.C 2006/01/17 09:31:24 1.26 +++ rxvt-unicode/src/logging.C 2006/01/17 10:14:26 1.27 @@ -33,9 +33,9 @@ #include "../config.h" #include "rxvt.h" -#include "logging.h" +#include "ptytty.h" -#ifdef UTMP_SUPPORT +#if UTMP_SUPPORT #if HAVE_STRUCT_UTMP static int rxvt_write_bsd_utmp (int utmp_pos, struct utmp *wu); @@ -57,11 +57,13 @@ * make and write utmp and wtmp entries */ void -rxvt_session::login (const char *pty, int cmd_pid, bool login_shell, const char *hostname) +rxvt_ptytty::login (int cmd_pid, bool login_shell, const char *hostname) { this->cmd_pid = cmd_pid; this->login_shell = login_shell; + const char *pty = name; + #ifdef HAVE_STRUCT_UTMP struct utmp *ut = &this->ut; #endif @@ -222,7 +224,7 @@ * remove utmp and wtmp entries */ void -rxvt_session::logout () +rxvt_ptytty::logout () { #ifdef HAVE_STRUCT_UTMP struct utmp *tmput, *ut = &this->ut;