Skip to content

Commit

Permalink
src/passwd.c: print_status(): Fix typo (bogus use of the comma operator)
Browse files Browse the repository at this point in the history
Amazing that this triggered no warnings at all.

Fixes: 355ad6a ("Have a single definition of date_to_str()")
Signed-off-by: Alejandro Colomar <[email protected]>
  • Loading branch information
alejandro-colomar authored and hallyn committed Mar 14, 2024
1 parent 82e28ad commit 8fee869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/passwd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 8fee869

Please sign in to comment.