]> git.sur5r.net Git - u-boot/blobdiff - common/autoboot.c
efi_loader: implement CreateDeviceNode
[u-boot] / common / autoboot.c
index 35c1e972c6593e0998f1ff92ab56cd371d4042b4..2eef7a04cc732fd0b250c64583cad09d77d40691 100644 (file)
@@ -57,7 +57,7 @@ static int passwd_abort(uint64_t etime)
        const char *algo_name = "sha256";
        u_int presskey_len = 0;
        int abort = 0;
-       int size;
+       int size = sizeof(sha);
        int ret;
 
        if (sha_env_str == NULL)
@@ -301,7 +301,7 @@ const char *bootdelay_process(void)
        bootcount++;
        bootcount_store(bootcount);
        env_set_ulong("bootcount", bootcount);
-       bootlimit = getenv_ulong("bootlimit", 10, 0);
+       bootlimit = env_get_ulong("bootlimit", 10, 0);
 #endif /* CONFIG_BOOTCOUNT_LIMIT */
 
        s = env_get("bootdelay");