From: Alejandro Colomar Date: Mon, 29 Jan 2024 14:20:22 +0000 (+0100) Subject: src/passwd.c: print_status(): Fix typo (bogus use of the comma operator) X-Git-Tag: 4.15.1~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8fee869e9ad8530f79f51eabec9eac87cb982196;p=thirdparty%2Fshadow.git src/passwd.c: print_status(): Fix typo (bogus use of the comma operator) Amazing that this triggered no warnings at all. Fixes: 355ad6a9e089 ("Have a single definition of date_to_str()") Signed-off-by: Alejandro Colomar --- diff --git a/src/passwd.c b/src/passwd.c index ed92bc7c7..d90bc659a 100644 --- a/src/passwd.c +++ b/src/passwd.c @@ -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),