Skip to contentSkip to conversation

env_onenand.c: Add missing cast in saveenv()

PATCH New Tom Rini 1 participant 1 message Apr 4, 2013

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

PATCH 1/1 env_onenand.c: Add missing cast in saveenv()

With the changes in 60d7d5a we need to cast env_buf here.

---
 common/env_onenand.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
common/env_onenand.c +1 -1
index 6fd5613..e4d5b28 100644
@@ -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;
Signature · 1 line
1.7.9.5