From: Alexander Feilke Date: Fri, 22 May 2026 15:39:21 +0000 (+0200) Subject: cmd_date: make mk_date() static X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58545b01062e7acdaaad15f236301f3f36a6156b;p=thirdparty%2Fu-boot.git cmd_date: make mk_date() static Use static as this function is not used externally. Signed-off-by: Alexander Feilke Reviewed-by: Simon Glass --- 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;