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

Diff of /inetutils/libinetutils/utmp_init.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:57:18 2002 UTC
# Line 28  Line 28 
28  #else  #else
29  # include <time.h>  # include <time.h>
30  #endif  #endif
31  #ifdef HAVE_UTMPX_H  #if defined (UTMPX) && defined(HAVE_UTMPX_H)
32  #define __USE_GNU  # define __USE_GNU
33  # include <utmpx.h>  # include <utmpx.h>
34  #else  #else
35  # include <utmp.h>  # include <utmp.h>
# Line 46  Line 46 
46  void  void
47  utmp_init(char   *line, char   *user, char   *id)  utmp_init(char   *line, char   *user, char   *id)
48  {  {
49  #ifdef HAVE_UTMPX_H  #ifdef UTMPX
50      struct utmpx utx;      struct utmpx utx;
51  #else  #else
52      struct utmp utx;      struct utmp utx;
# Line 73  utmp_init(char   *line, char   *user, ch Line 73  utmp_init(char   *line, char   *user, ch
73  #else  #else
74      time(&(utx.ut_time));      time(&(utx.ut_time));
75  #endif  #endif
76  #ifdef HAVE_UTMPX_H  #ifdef UTMPX
77      pututxline(&utx);      pututxline(&utx);
78  # ifdef HAVE_UPDWTMPX  # ifdef HAVE_UPDWTMPX
79      updwtmpx(PATH_WTMPX, &utx);      updwtmpx(PATH_WTMPX, &utx);

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