]> git.ipfire.org Git - thirdparty/shadow.git/commit
lib/time/day_to_str.[ch]: day_to_str(): Accept a day instead of a date, and rename...
authorAlejandro Colomar <alx@kernel.org>
Mon, 29 Jan 2024 14:34:20 +0000 (15:34 +0100)
committerSerge Hallyn <serge@hallyn.com>
Thu, 14 Mar 2024 21:30:46 +0000 (16:30 -0500)
commit8fcf6cccff64cf270b8d4596dca3e6fd763f846c
tree65f40f199d36dd4280610a73e4bdb47cea356c76
parent8fee869e9ad8530f79f51eabec9eac87cb982196
lib/time/day_to_str.[ch]: day_to_str(): Accept a day instead of a date, and rename function

It was always being called with 'day * DAY', so do that internally and
simplify.  This grabs some code from print_day_as_date().

Cc: Tobias Stoeckmann <tobias@stoeckmann.org>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/time/day_to_str.c
lib/time/day_to_str.h