From: Alejandro Colomar Date: Tue, 20 Feb 2024 18:09:36 +0000 (+0100) Subject: lib/utmp.c: Merge preprocessor conditionals X-Git-Tag: 4.15.0-rc3~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5815acf371fb2ebf18d35f38fc8b3a92aa2b9fe;p=thirdparty%2Fshadow.git lib/utmp.c: Merge preprocessor conditionals Reviewed-by: Iker Pedrosa Signed-off-by: Alejandro Colomar --- diff --git a/lib/utmp.c b/lib/utmp.c index 4f41b60ff..e5dfb3f04 100644 --- a/lib/utmp.c +++ b/lib/utmp.c @@ -204,12 +204,11 @@ get_session_host(char **out) } -#ifndef USE_PAM +#if !defined(USE_PAM) && !defined(HAVE_UPDWTMPX) /* * Some systems already have updwtmpx(). Others * don't, so we re-implement these functions if necessary. */ -# ifndef HAVE_UPDWTMPX static void updwtmpx(const char *filename, const struct utmpx *ut) { @@ -221,8 +220,7 @@ updwtmpx(const char *filename, const struct utmpx *ut) close (fd); } } -# endif /* ! HAVE_UPDWTMPX */ -#endif /* ! USE_PAM */ +#endif /*