utils: Check if the parameter passed to countof() is actually an array type
authorMartin Willi <martin@revosec.ch>
Fri, 4 Jul 2014 12:37:58 +0000 (14:37 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 25 Aug 2014 07:48:53 +0000 (09:48 +0200)
commit11bf11c1f55402cc08deeb53ee94387afc4a4525
tree7d5d5bd459086c88c1d0564c69152d7dd7d55c35
parentbb6be261974788d971226d7508bcbc49af86e96e
utils: Check if the parameter passed to countof() is actually an array type

This should avoid errors such as the one fixed with 118b2879.
src/libstrongswan/utils/utils.h