Patchwork [U-Boot] env_onenand.c: Add missing cast in saveenv()

login
register
mail settings
Submitter Tom Rini
Date April 4, 2013, 6:20 p.m.
Message ID <1365099621-16721-1-git-send-email-trini@ti.com>
Download mbox | patch
Permalink /patch/233894/
State Rejected
Delegated to: Tom Rini
Headers show

Comments

Tom Rini - April 4, 2013, 6:20 p.m.
With the changes in 60d7d5a we need to cast env_buf here.

Signed-off-by: Tom Rini <trini@ti.com>
---
 common/env_onenand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/common/env_onenand.c b/common/env_onenand.c
index 6fd5613..e4d5b28 100644
--- a/common/env_onenand.c
+++ b/common/env_onenand.c
@@ -82,7 +82,7 @@  void env_relocate_spec(void)
 
 int saveenv(void)
 {
-	env_t	*env_new = env_buf;
+	env_t	*env_new = (env_t *)env_buf;
 	ssize_t	len;
 	char	*res;
 	struct mtd_info *mtd = &onenand_mtd;