Always create a utmpx_login fucnction.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@155 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-10-16 19:39:15 +00:00
parent 30f64c18f5
commit cd1a015c4d

View File

@@ -2,15 +2,14 @@
#include "bsd_locl.h" #include "bsd_locl.h"
#ifdef SYSV_UTMP
/* utmpx_login - update utmp and wtmp after login */ /* utmpx_login - update utmp and wtmp after login */
utmpx_login(line, user, host) int
char *line; utmpx_login(char *line, char *user, char *host)
char *user;
char *host;
{ {
#ifndef SYSV_UTMP
return 0;
#else
struct utmpx *ut; struct utmpx *ut;
pid_t mypid = getpid(); pid_t mypid = getpid();
int ret = (-1); int ret = (-1);
@@ -42,6 +41,5 @@ char *host;
} }
endutxent(); endutxent();
return (ret); return (ret);
}
#endif /* SYSV_UTMP */ #endif /* SYSV_UTMP */
}