Change HAVE_UTMPX_H to HAVE_UTMPX
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@618 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -6,7 +6,7 @@ RCSID("$Id$");
|
|||||||
|
|
||||||
void utmp_login(char *tty, char *username, char *hostname)
|
void utmp_login(char *tty, char *username, char *hostname)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_UTMPX_H
|
#ifndef HAVE_UTMPX
|
||||||
struct utmp utmp;
|
struct utmp utmp;
|
||||||
struct hostent *he;
|
struct hostent *he;
|
||||||
int fd;
|
int fd;
|
||||||
@@ -81,5 +81,5 @@ void utmp_login(char *tty, char *username, char *hostname)
|
|||||||
write(fd, (char *)&utmp, sizeof(struct utmp));
|
write(fd, (char *)&utmp, sizeof(struct utmp));
|
||||||
close(fd);
|
close(fd);
|
||||||
}
|
}
|
||||||
#endif /* HAVE_UTMPX_H */
|
#endif /* HAVE_UTMPX */
|
||||||
}
|
}
|
||||||
|
@@ -9,7 +9,7 @@ RCSID("$Id$");
|
|||||||
int
|
int
|
||||||
utmpx_login(char *line, char *user, char *host)
|
utmpx_login(char *line, char *user, char *host)
|
||||||
{
|
{
|
||||||
#ifndef HAVE_UTMPX_H
|
#ifndef HAVE_UTMPX
|
||||||
return 0;
|
return 0;
|
||||||
#else
|
#else
|
||||||
struct utmpx *ut;
|
struct utmpx *ut;
|
||||||
@@ -43,5 +43,5 @@ utmpx_login(char *line, char *user, char *host)
|
|||||||
}
|
}
|
||||||
endutxent();
|
endutxent();
|
||||||
return (ret);
|
return (ret);
|
||||||
#endif /* HAVE_UTMPX_H */
|
#endif /* HAVE_UTMPX */
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user