From: Alejandro Colomar Date: Tue, 18 Feb 2025 14:19:38 +0000 (+0100) Subject: lib/: get_date(): Remove unused parameter X-Git-Tag: 4.18.0-rc1~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4be6e92f5bb54b4a724f058c62b593e2bda1d2de;p=thirdparty%2Fshadow.git lib/: get_date(): Remove unused parameter And rename the remaining parameter. Signed-off-by: Alejandro Colomar --- diff --git a/lib/getdate.c b/lib/getdate.c index 7479875e8..f9a3f837a 100644 --- a/lib/getdate.c +++ b/lib/getdate.c @@ -31,11 +31,11 @@ static int parse_date(const char *s); time_t -get_date(const char *p, const time_t *now) +get_date(const char *s) { struct tm tm; - if (parse_date(p) == -1) + if (parse_date(s) == -1) return -1; tm.tm_year = yyYear - TM_YEAR_ORIGIN; diff --git a/lib/getdate.h b/lib/getdate.h index eae56f647..734855921 100644 --- a/lib/getdate.h +++ b/lib/getdate.h @@ -12,5 +12,5 @@ #include #include "defines.h" -time_t get_date (const char *p, /*@null@*/const time_t *now); +time_t get_date(const char *s); #endif diff --git a/lib/strtoday.c b/lib/strtoday.c index 3d9410181..c0b159337 100644 --- a/lib/strtoday.c +++ b/lib/strtoday.c @@ -49,7 +49,7 @@ strtoday(const char *str) return retdate; } - t = get_date(str, NULL); + t = get_date(str); if ((time_t) - 1 == t) { return -2; }