From 58545b01062e7acdaaad15f236301f3f36a6156b Mon Sep 17 00:00:00 2001 From: Alexander Feilke Date: Fri, 22 May 2026 17:39:21 +0200 Subject: cmd_date: make mk_date() static Use static as this function is not used externally. Signed-off-by: Alexander Feilke Reviewed-by: Simon Glass --- cmd/date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd') diff --git a/cmd/date.c b/cmd/date.c index d047872289c..f7ecdac7dd3 100644 --- a/cmd/date.c +++ b/cmd/date.c @@ -16,7 +16,7 @@ static const char * const weekdays[] = { "Sun", "Mon", "Tues", "Wednes", "Thurs", "Fri", "Satur", }; -int mk_date (const char *, struct rtc_time *); +static int mk_date(const char *, struct rtc_time *); static struct rtc_time default_tm = { 0, 0, 0, 1, 1, 2000, 6, 0, 0 }; @@ -117,7 +117,7 @@ static int cnvrt2 (const char *str, int *valp) * Some basic checking for valid values is done, but this will not catch * all possible error conditions. */ -int mk_date (const char *datestr, struct rtc_time *tmp) +static int mk_date(const char *datestr, struct rtc_time *tmp) { int len, val; char *ptr; -- cgit v1.3.1