X-Git-Url: https://git.librecmc.org/?p=oweals%2Fu-boot.git;a=blobdiff_plain;f=env%2Ffat.c;h=1836556f361d012e0bcd5ba54323475fe181e8a3;hp=884eeb8c5fc1517db5547689999285cc788a4403;hb=2c871f9e084b2c03d1961884228a6901387ab8d6;hpb=95058fbb97b8846e5fa569d5083a76567f2b9d81 diff --git a/env/fat.c b/env/fat.c index 884eeb8c5f..1836556f36 100644 --- a/env/fat.c +++ b/env/fat.c @@ -1,16 +1,16 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * (c) Copyright 2011 by Tigris Elektronik GmbH * * Author: * Maximilian Schwerin - * - * SPDX-License-Identifier: GPL-2.0+ */ #include #include -#include +#include +#include #include #include #include @@ -31,8 +31,6 @@ # endif #endif -DECLARE_GLOBAL_DATA_PTR; - #ifdef CMD_SAVEENV static int env_fat_save(void) { @@ -125,7 +123,7 @@ static int env_fat_load(void) return env_import(buf, 1); err_env_relocate: - set_default_env(NULL); + env_set_default(NULL, 0); return -EIO; }