]> git.sur5r.net Git - u-boot/blobdiff - api/api.c
spl: fat: Support full fitImage handling
[u-boot] / api / api.c
index 23fa1774c3c33ea7845bf24749b6659048ab3a9c..9f03f1a35bb2511fd8a69a615c91e05d991a90e6 100644 (file)
--- a/api/api.c
+++ b/api/api.c
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * (C) Copyright 2007 Semihalf
  *
  * Written by: Rafal Jaworowski <raj@semihalf.com>
- *
- * SPDX-License-Identifier:    GPL-2.0+
  */
 
 #include <config.h>
@@ -458,7 +457,7 @@ static int API_env_get(va_list ap)
        if ((value = (char **)va_arg(ap, uintptr_t)) == NULL)
                return API_EINVAL;
 
-       *value = getenv(name);
+       *value = env_get(name);
 
        return 0;
 }