src/passwd.c: print_status(): Fix typo (bogus use of the comma operator)

Amazing that this triggered no warnings at all.

Fixes: 355ad6a9e0 ("Have a single definition of date_to_str()")
Signed-off-by: Alejandro Colomar <alx@kernel.org>
This commit is contained in:
Alejandro Colomar
2024-01-29 15:20:22 +01:00
committed by Serge Hallyn
parent 82e28ad534
commit 8fee869e9a

View File

@@ -453,7 +453,7 @@ static void print_status (const struct passwd *pw)
sp = prefix_getspnam (pw->pw_name); /* local, no need for xprefix_getspnam */
if (NULL != sp) {
DAY_TO_STR(date, sp->sp_lstchg),
DAY_TO_STR(date, sp->sp_lstchg);
(void) printf ("%s %s %s %ld %ld %ld %ld\n",
pw->pw_name,
pw_status (sp->sp_pwdp),