summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Feilke <[email protected]>2026-05-22 17:39:21 +0200
committerTom Rini <[email protected]>2026-06-05 10:14:24 -0600
commit58545b01062e7acdaaad15f236301f3f36a6156b (patch)
treea71edf3a43700bc2d63a872e7cb2bbf644b61730
parent397a14dd7142f381bbd316a13cd7e82c88c7287c (diff)
cmd_date: make mk_date() static
Use static as this function is not used externally. Signed-off-by: Alexander Feilke <[email protected]> Reviewed-by: Simon Glass <[email protected]>
-rw-r--r--cmd/date.c4
1 files changed, 2 insertions, 2 deletions
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;