X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fbootretry.c;h=dac891fbc5e3fa0cc01a15e811a2442518eee50c;hb=1045315df0f1bed617f0ee01379a10f543cec501;hp=2d82798cd04bc6ba004d2382ceaab79637c79a85;hpb=22692ec0fbdb455ca16d4d0e27768c6b6deb4243;p=oweals%2Fu-boot.git diff --git a/common/bootretry.c b/common/bootretry.c index 2d82798cd0..dac891fbc5 100644 --- a/common/bootretry.c +++ b/common/bootretry.c @@ -1,14 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include #include +#include #include +#include #include #ifndef CONFIG_BOOT_RETRY_MIN @@ -23,7 +24,7 @@ static int retry_time = -1; /* -1 so can call readline before main_loop */ */ void bootretry_init_cmd_timeout(void) { - char *s = getenv("bootretry"); + char *s = env_get("bootretry"); if (s != NULL) retry_time = (int)simple_strtol(s, NULL, 10);