Merge "Fix <utmp.h> declarations."

This commit is contained in:
Elliott Hughes 2015-10-27 15:07:12 +00:00 committed by Gerrit Code Review
commit 60752a2eea
2 changed files with 9 additions and 2 deletions

View File

@ -97,8 +97,9 @@ struct utmp
__BEGIN_DECLS
int utmpname(const char*);
void setutent();
struct utmp* getutent();
void setutent(void);
struct utmp* getutent(void);
void endutent(void);
int login_tty(int);

View File

@ -23,3 +23,9 @@ TEST(utmp, login_tty) {
// This test just checks that we're exporting the symbol independently.
ASSERT_EQ(-1, login_tty(-1));
}
TEST(utmp, setutent_getutent_endutent) {
setutent();
getutent();
endutent();
}