Merge "Fix <utmp.h> declarations."

am: 60752a2eea

* commit '60752a2eeab8cd0b344b27c67a47e30628962211':
  Fix <utmp.h> declarations.
This commit is contained in:
Elliott Hughes 2015-10-27 15:11:58 +00:00 committed by android-build-merger
commit 6e780f2f47
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();
}