Fix <utmp.h> declarations.
If we're going to keep this useless header -- and I think it's too late to remove it -- it may as well be correct. Bug: http://b/17700469 Change-Id: Ifec4f8f1a984483d7fa7d81d47786f75b70ff4ba
This commit is contained in:
parent
a2cf3783d4
commit
9216a64c90
@ -97,8 +97,9 @@ struct utmp
|
|||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
int utmpname(const char*);
|
int utmpname(const char*);
|
||||||
void setutent();
|
void setutent(void);
|
||||||
struct utmp* getutent();
|
struct utmp* getutent(void);
|
||||||
|
void endutent(void);
|
||||||
|
|
||||||
int login_tty(int);
|
int login_tty(int);
|
||||||
|
|
||||||
|
@ -23,3 +23,9 @@ TEST(utmp, login_tty) {
|
|||||||
// This test just checks that we're exporting the symbol independently.
|
// This test just checks that we're exporting the symbol independently.
|
||||||
ASSERT_EQ(-1, login_tty(-1));
|
ASSERT_EQ(-1, login_tty(-1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(utmp, setutent_getutent_endutent) {
|
||||||
|
setutent();
|
||||||
|
getutent();
|
||||||
|
endutent();
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user