* lib/prototypes.h: Add the dolastlog() prototype.
* lib/prototypes.h: Typo: login.c -> loginprompt.c * src/login.c: Remove declaration of dolastlog(). * libmisc/log.c: dolastlog() should not have been changed to static. Include prototypes.h instead.
This commit is contained in:
@@ -37,12 +37,7 @@
|
||||
#include <time.h>
|
||||
#include "defines.h"
|
||||
#include <lastlog.h>
|
||||
|
||||
/* local function prototypes */
|
||||
static void dolastlog (struct lastlog *ll,
|
||||
const struct passwd *pw,
|
||||
const char *line,
|
||||
const char *host);
|
||||
#include "prototypes.h"
|
||||
|
||||
/*
|
||||
* dolastlog - create lastlog entry
|
||||
@@ -51,7 +46,7 @@ static void dolastlog (struct lastlog *ll,
|
||||
* UID is extracted from the global (struct passwd) entry and the
|
||||
* TTY information is gotten from the (struct utmp).
|
||||
*/
|
||||
static void
|
||||
void
|
||||
dolastlog (struct lastlog *ll, const struct passwd *pw, const char *line,
|
||||
const char *host)
|
||||
{
|
||||
|
Reference in New Issue
Block a user