* libmisc/failure.h: Replace HAVE_UTMPX_H by USE_UTMPX.

This commit is contained in:
nekral-guest 2009-04-28 19:19:33 +00:00
parent 6547cbda6f
commit a5188d2f05
2 changed files with 10 additions and 6 deletions

View File

@ -1,3 +1,7 @@
2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/failure.h: Replace HAVE_UTMPX_H by USE_UTMPX.
2009-04-28 Nicolas François <nicolas.francois@centraliens.net> 2009-04-28 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/rlogin.c: Replace atoi() by getulong(). * libmisc/rlogin.c: Replace atoi() by getulong().

View File

@ -36,11 +36,11 @@
#include "defines.h" #include "defines.h"
#include "faillog.h" #include "faillog.h"
#ifdef HAVE_UTMPX_H #ifdef USE_UTMPX
#include <utmpx.h> #include <utmpx.h>
#else #else /* !USE_UTMPX */
#include <utmp.h> #include <utmp.h>
#endif #endif /* !USE_UTMPX */
/* /*
* failure - make failure entry * failure - make failure entry
@ -74,11 +74,11 @@ extern void failprint (const struct faillog *);
* failtmp updates the (struct utmp) formatted failure log which * failtmp updates the (struct utmp) formatted failure log which
* maintains a record of all login failures. * maintains a record of all login failures.
*/ */
#ifdef HAVE_UTMPX_H #ifdef USE_UTMPX
extern void failtmp (const char *username, const struct utmpx *); extern void failtmp (const char *username, const struct utmpx *);
#else #else /* !USE_UTMPX */
extern void failtmp (const char *username, const struct utmp *); extern void failtmp (const char *username, const struct utmp *);
#endif #endif /* !USE_UTMPX */
#endif #endif