summaryrefslogtreecommitdiffstats
path: root/common/env_flash.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2010-12-08 06:26:04 -0500
committerWolfgang Denk <wd@denx.de>2010-12-17 21:07:14 +0100
commit2eb1573f01710832bbe60a4ece89cb301727612a (patch)
treeec940c57d350c16c567a8c2a865860e4a5ff4bb2 /common/env_flash.c
parentc22a711d249b2b9ee39fe11bcee15ee4dbe3bf09 (diff)
downloadblackbird-obmc-uboot-2eb1573f01710832bbe60a4ece89cb301727612a.tar.gz
blackbird-obmc-uboot-2eb1573f01710832bbe60a4ece89cb301727612a.zip
hashtable: drop all non-reentrant versions
The non-reentrant versions of the hashtable functions operate on a single shared hashtable. So if two different people try using these funcs for two different purposes, they'll cause problems for the other. Avoid this by converting all existing hashtable consumers over to the reentrant versions and then punting the non-reentrant ones. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'common/env_flash.c')
-rw-r--r--common/env_flash.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common/env_flash.c b/common/env_flash.c
index 54c0bfec76..456f2e8375 100644
--- a/common/env_flash.c
+++ b/common/env_flash.c
@@ -155,7 +155,7 @@ int saveenv(void)
}
res = (char *)&env_new.data;
- len = hexport('\0', &res, ENV_SIZE);
+ len = hexport_r(&env_htab, '\0', &res, ENV_SIZE);
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
goto done;
@@ -289,7 +289,7 @@ int saveenv(void)
goto done;
res = (char *)&env_new.data;
- len = hexport('\0', &res, ENV_SIZE);
+ len = hexport_r(&env_htab, '\0', &res, ENV_SIZE);
if (len < 0) {
error("Cannot export environment: errno = %d\n", errno);
goto done;
OpenPOWER on IntegriCloud