firmware-utils: Fix build failure in mkmerakifw.c FS#298
authorFlorian Fainelli <f.fainelli@gmail.com>
Wed, 23 Nov 2016 20:50:25 +0000 (12:50 -0800)
committerJohn Crispin <john@phrozen.org>
Sat, 26 Nov 2016 21:39:27 +0000 (22:39 +0100)
commit97eff5cba52076da476f028b02bae34fd1f3a9f6
tree32eba7923f48747397a57e2369a5d908866a413c
parent04a76da1aea059c638b166e5433a13d0951fb2bd
firmware-utils: Fix build failure in mkmerakifw.c FS#298

Earlier compilers such as GCC 4 do not like anynomous unions, make it a named
union "u", and update the code where relevant.

Fixes FS#298
Fixes: a72e1692b8b3 ("firmware-utils: Add support for the Cisco Meraki MX60/MX60W")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
tools/firmware-utils/src/mkmerakifw.c