]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/cmd_date.c
rewrite of cmd_cpu/do_cpu_freq
[z180-stamp.git] / avr / cmd_date.c
index 91a3d4439dbe9816817ead63d936dc097fc4b22f..0bd3ebb517cc1fe3ba375df6335efe23e73c3ac5 100644 (file)
 /*
  * 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"
 
 
 /*
@@ -125,15 +123,13 @@ int mk_date (const char *datestr, struct tm *tmp)
        return (-1);
 }
 
-command_ret_t do_date(cmd_tbl_t *cmdtp, uint_fast8_t 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 */