X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fbootretry.c;h=47aaaa82201ea60a9bf470d1771032f41c4f1766;hb=d0384d516043f9c9c28158827a113771c3247536;hp=2d82798cd04bc6ba004d2382ceaab79637c79a85;hpb=304f936aeaab0c3cc9d5af438fd3498ac7682991;p=oweals%2Fu-boot.git diff --git a/common/bootretry.c b/common/bootretry.c index 2d82798cd0..47aaaa8220 100644 --- a/common/bootretry.c +++ b/common/bootretry.c @@ -1,13 +1,13 @@ +// 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 @@ -23,7 +23,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);