From cf7a56fc78a3304fd9ad4b22c6da30cc452a5b4b Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Thu, 5 Jul 2007 18:01:38 +0200 Subject: svn_rev_268 WIP --- common/env.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'common/env.c') diff --git a/common/env.c b/common/env.c index d8fb867957..8a69017218 100644 --- a/common/env.c +++ b/common/env.c @@ -123,7 +123,7 @@ int add_env_spec(char *spec) env_list->next = NULL; - err = read(info.device, env, env_size, info.start, 0); + err = dev_read(info.device, env, env_size, info.start, 0); if (err != env_size) goto err_out; @@ -206,13 +206,13 @@ int saveenv(void) *(ulong *)env = crc32(0, env + sizeof(ulong), env_size - sizeof(ulong)); - ret = erase(info.device, info.size, info.start); + ret = dev_erase(info.device, info.size, info.start); if (ret) { printf("unable to erase\n"); goto err_out; } - ret = write(info.device, env, info.size, info.start, 0); + ret = dev_write(info.device, env, info.size, info.start, 0); if (ret < 0) { printf("unable to write\n"); goto err_out; -- cgit v1.2.3