summaryrefslogtreecommitdiff
path: root/board/tqm8xx/load_sernum_ethaddr.c
diff options
context:
space:
mode:
Diffstat (limited to 'board/tqm8xx/load_sernum_ethaddr.c')
-rw-r--r--board/tqm8xx/load_sernum_ethaddr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/board/tqm8xx/load_sernum_ethaddr.c b/board/tqm8xx/load_sernum_ethaddr.c
index 98baf7f67d..143f36801d 100644
--- a/board/tqm8xx/load_sernum_ethaddr.c
+++ b/board/tqm8xx/load_sernum_ethaddr.c
@@ -96,10 +96,10 @@ void load_sernum_ethaddr (void)
/* set serial# and ethaddr if not yet defined */
if (getenv("serial#") == NULL) {
- setenv ("serial#", serial);
+ setenv ((char *)"serial#", (char *)serial);
}
if (getenv("ethaddr") == NULL) {
- setenv ("ethaddr", ethaddr);
+ setenv ((char *)"ethaddr", (char *)ethaddr);
}
}