summaryrefslogtreecommitdiff
path: root/loginrec.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2000-06-07 21:32:13 +1000
committerDamien Miller <djm@mindrot.org>2000-06-07 21:32:13 +1000
commitd5bf307f7bd69d502bc03897a00a07df513418f7 (patch)
treeec9215a2622eea3b5731f9b56d77ade0e4bca21d /loginrec.c
parent0c043c1fd31c6e7aa866114cca36244f7243ec5a (diff)
- (djm) Remove duplicate headers from loginrec.c
Diffstat (limited to 'loginrec.c')
-rw-r--r--loginrec.c34
1 files changed, 6 insertions, 28 deletions
diff --git a/loginrec.c b/loginrec.c
index ed14f3a74..5951e0271 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -156,23 +156,6 @@
156 156
157#include "includes.h" 157#include "includes.h"
158 158
159#include <sys/types.h>
160#include <sys/stat.h>
161#include <netinet/in.h>
162#include <unistd.h>
163#include <fcntl.h>
164#include <stdlib.h>
165#include <string.h>
166#include <stdio.h>
167#include <errno.h>
168#ifdef HAVE_PWD_H
169# include <pwd.h>
170#endif
171#ifdef HAVE_SYS_TIME_H
172# include <sys/time.h>
173#else
174# include <time.h>
175#endif
176#if HAVE_UTMP_H 159#if HAVE_UTMP_H
177# include <utmp.h> 160# include <utmp.h>
178#endif 161#endif
@@ -187,8 +170,7 @@
187#include "xmalloc.h" 170#include "xmalloc.h"
188#include "loginrec.h" 171#include "loginrec.h"
189 172
190RCSID("$Id: loginrec.c,v 1.3 2000/06/04 17:07:49 andre Exp $"); 173RCSID("$Id: loginrec.c,v 1.4 2000/06/07 11:32:13 djm Exp $");
191
192 174
193/** 175/**
194 ** prototypes for helper functions in this file 176 ** prototypes for helper functions in this file
@@ -1117,9 +1099,7 @@ wtmpx_get_entry(struct logininfo *li)
1117} 1099}
1118 1100
1119 1101
1120#endif 1102#endif /* USE_WTMPX */
1121/* USE_WTMPX */
1122
1123 1103
1124 1104
1125/** 1105/**
@@ -1154,11 +1134,11 @@ syslogin_perform_logout(struct logininfo *li)
1154 1134
1155 if (!logout(line)) { 1135 if (!logout(line)) {
1156 log("syslogin_perform_logout: logout() returned an error"); 1136 log("syslogin_perform_logout: logout() returned an error");
1157# ifdef HAVE_LOGWTMP 1137# ifdef HAVE_LOGWTMP
1158 } else { 1138 } else {
1159 logwtmp(line, "", ""); 1139 logwtmp(line, "", "");
1160 } 1140 }
1161# endif 1141# endif
1162 /* TODO: what to do if we have login, but no logout? 1142 /* TODO: what to do if we have login, but no logout?
1163 * what if logout but no logwtmp? All routines are in libutil 1143 * what if logout but no logwtmp? All routines are in libutil
1164 * so they should all be there, but... */ 1144 * so they should all be there, but... */
@@ -1182,8 +1162,7 @@ syslogin_write_entry(struct logininfo *li)
1182} 1162}
1183 1163
1184 1164
1185#endif 1165#endif /* USE_LOGIN */
1186/* USE_LOGIN */
1187 1166
1188/* end of file log-syslogin.c */ 1167/* end of file log-syslogin.c */
1189 1168
@@ -1336,5 +1315,4 @@ lastlog_get_entry(struct logininfo *li)
1336} 1315}
1337 1316
1338 1317
1339#endif 1318#endif /* USE_LASTLOG */
1340/* USE_LASTLOG */