X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=board%2Frbc823%2Frbc823.c;h=ddfba14919946a349fde9f2e26d451fa172fe11c;hb=f0c0b3a9e6f28a34d6da5edabba1e874fdf8e675;hp=e10d9f9ff01cdac620c2e871d242e6a804ec4793;hpb=a02a884b95c47e114a54f2751d03f139f312af2f;p=pandora-u-boot.git diff --git a/board/rbc823/rbc823.c b/board/rbc823/rbc823.c index e10d9f9ff0..ddfba14919 100644 --- a/board/rbc823/rbc823.c +++ b/board/rbc823/rbc823.c @@ -127,15 +127,16 @@ const uint static_table[] = int checkboard (void) { - char *s = getenv ("serial#"); + char buf[64]; + int i = getenv_f("serial#", buf, sizeof(buf)); - if (!s || strncmp (s, "TQM8", 4)) { + if (i < 0 || strncmp(buf, "TQM8", 4)) { printf ("### No HW ID - assuming RBC823\n"); return (0); } - puts (s); - putc ('\n'); + puts(buf); + putc('\n'); return (0); }