X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=common%2Fbootretry.c;h=072055b0105767873ba8baf636837b80a34ffb14;hb=0a09f2f1173d877a007fe64c7e130c04c5085662;hp=2d82798cd04bc6ba004d2382ceaab79637c79a85;hpb=b26440f1fa243396000536028ea00e5e185b6b6a;p=oweals%2Fu-boot.git diff --git a/common/bootretry.c b/common/bootretry.c index 2d82798cd0..072055b010 100644 --- a/common/bootretry.c +++ b/common/bootretry.c @@ -1,8 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (C) Copyright 2000 * Wolfgang Denk, DENX Software Engineering, wd@denx.de. - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -23,7 +22,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);