]> git.ipfire.org Git - thirdparty/util-linux.git/commit
login: Fix unused variables in login.c if _HAVE_UT_TV isn't defined
authorWill Johansson <will.johansson@gmail.com>
Mon, 15 Dec 2014 11:51:29 +0000 (03:51 -0800)
committerKarel Zak <kzak@redhat.com>
Thu, 18 Dec 2014 10:02:08 +0000 (11:02 +0100)
commitecc5632f09b15d10bb4031750e4e0abf83a71f6e
tree4fb62309072c9b299b993c04da7e0a66ba119f6f
parent01966ce852ac6c46e7e35a8e4f981dea88620ff8
login: Fix unused variables in login.c if _HAVE_UT_TV isn't defined

Wrap around the variable declaration for `tv' with ifdef so the compilers
don't warn about unused variables if we're compiling without UT_TV. This
happens with the musl libc, since it doesn't define _HAVE_UT_TV, even
though it _does_ have the ut_tv field in the utmp struct.

Signed-off-by: Will Johansson <will.johansson@gmail.com>
login-utils/login.c