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)
commit171f43cf5b5e19f2ca40b816f4447a192e39de2c
tree86f7d9177700133df163d684c71c4dd3cd8d0965
parentbe130ce6584108b086871ecaf6b660b0f4db26f4
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>
src/mkmerakifw.c