X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=api%2Fapi.c;h=9f03f1a35bb2511fd8a69a615c91e05d991a90e6;hb=898c40c0d6f9e53dafcfdf6f870190faef6e088b;hp=c368511704e5e9877757a49b2e8e9cf2256c2b95;hpb=6215bd4c1fd6bce95072ad123cf1e4af94ab44e2;p=platform%2Fkernel%2Fu-boot.git diff --git a/api/api.c b/api/api.c index c368511..9f03f1a 100644 --- 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 - * - * SPDX-License-Identifier: GPL-2.0+ */ #include @@ -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; } @@ -481,7 +480,7 @@ static int API_env_set(va_list ap) if ((value = (char *)va_arg(ap, uintptr_t)) == NULL) return API_EINVAL; - setenv(name, value); + env_set(name, value); return 0; } @@ -625,7 +624,7 @@ int syscall(int call, int *retval, ...) void api_init(void) { - struct api_signature *sig = NULL; + struct api_signature *sig; /* TODO put this into linker set one day... */ calls_table[API_RSVD] = NULL; @@ -663,7 +662,7 @@ void api_init(void) return; } - setenv_hex("api_address", (unsigned long)sig); + env_set_hex("api_address", (unsigned long)sig); debugf("API sig @ 0x%lX\n", (unsigned long)sig); memcpy(sig->magic, API_SIG_MAGIC, 8); sig->version = API_SIG_VERSION;