eicon: fix -Warray-bounds warning
authorDanny Kukawka <danny.kukawka@bisect.de>
Thu, 2 Feb 2012 03:20:28 +0000 (03:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 2 Feb 2012 21:47:41 +0000 (16:47 -0500)
commite1f4c485cdb2b1d7aae172b731f6c2b403381ebb
tree9e4a8024f8144479295658bb31252a349195cdcc
parent87e7597b5a3f99238d95d63c44c9f872a41b37ae
eicon: fix -Warray-bounds warning

Fix for a -Warray-bounds warning. mixer_notify_update() tries to
write to ((CAPI_MSG *) msg)->info.facility_req.structs[3] while
structs is defined as byte structs[1]. Set all 'structs' which are
part of the typdefs in the info union to 'byte structs[0]'.

v2: set all info.*.structs to byte structs[0]

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/isdn/hardware/eicon/capi20.h