* (C) Copyright 2001
* Wolfgang Denk, DENX Software Engineering, wd@denx.de.
*
- * SPDX-License-Identifier: GPL-2.0+
+ * SPDX-License-Identifier: GPL-2.0
*/
/*
* RTC, Date & Time support: get and set date & time
*/
-#include "common.h"
-#include <string.h>
+#include "cmd_date.h"
#include "time.h"
#include "rtc.h"
-#include "command.h"
/*
return (-1);
}
-command_ret_t do_date(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+command_ret_t do_date(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc, char * const argv[])
{
struct tm t;
char buf[30];
int rc;
command_ret_t rcode = CMD_RET_FAILURE;
- (void) cmdtp; (void) flag;
-
switch (argc) {
case 2: /* set date & time */
/* initialize t with current time */