/[inetutils]/inetutils/libinetutils/utmp_logout.c
ViewVC logotype

Diff of /inetutils/libinetutils/utmp_logout.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by marcus, Fri Nov 2 21:50:13 2001 UTC revision 1.7 by gray, Thu Apr 4 23:58:31 2002 UTC
# Line 27  Line 27 
27  #else  #else
28  # include <time.h>  # include <time.h>
29  #endif  #endif
30  #ifdef HAVE_UTMPX_H  #if defined(UTMPX) && defined(HAVE_UTMPX_H)
31  #define __USE_GNU  # define __USE_GNU
32  # include <utmpx.h>  # include <utmpx.h>
33  #else  #else
34  # include <utmp.h>  # include <utmp.h>
# Line 44  Line 44 
44  void  void
45  utmp_logout(char   *line)  utmp_logout(char   *line)
46  {  {
47  #ifdef HAVE_UTMPX_H  #ifdef UTMPX
48          struct utmpx utx;          struct utmpx utx;
49          struct utmpx *ut;          struct utmpx *ut;
50    
# Line 80  utmp_logout(char   *line) Line 80  utmp_logout(char   *line)
80  #endif  #endif
81                  pututline(ut);                  pututline(ut);
82  #ifdef HAVE_UPDWTMP  #ifdef HAVE_UPDWTMP
83                    ut->ut_name[0] = 0;
84                    ut->ut_host[0] = 0;
85                  updwtmp(WTMP_FILE, ut);                  updwtmp(WTMP_FILE, ut);
86  #endif /* XXX #else logwtmp ? */  #else
87                    logwtmp(ut->ut_line, "", "");
88    #endif
89          }          }
90          endutent();          endutent();
91  #endif  #endif

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26