]> git.sur5r.net Git - u-boot/blobdiff - tools/imagetool.c
mkimage: Refactor imagetool_get_source_date to take command name
[u-boot] / tools / imagetool.c
index a4e39b24bca79bdd24adabdafd54d9b6be2f1a37..b3e628f612f527f7a3ed11afb7c57395ae6a6bab 100644 (file)
@@ -116,7 +116,7 @@ int imagetool_get_filesize(struct image_tool_params *params, const char *fname)
 }
 
 time_t imagetool_get_source_date(
-        struct image_tool_params *params,
+        const char *cmdname,
         time_t fallback)
 {
        char *source_date_epoch = getenv("SOURCE_DATE_EPOCH");
@@ -128,7 +128,7 @@ time_t imagetool_get_source_date(
 
        if (gmtime(&time) == NULL) {
                fprintf(stderr, "%s: SOURCE_DATE_EPOCH is not valid\n",
-                       params->cmdname);
+                       cmdname);
                time = 0;
        }