]> git.ipfire.org Git - thirdparty/lldpd.git/commit - src/marshal.c
marshal: use zero-sized array instead of flexible arrays
authorVincent Bernat <bernat@luffy.cx>
Fri, 4 May 2012 09:48:40 +0000 (11:48 +0200)
committerVincent Bernat <bernat@luffy.cx>
Fri, 4 May 2012 09:48:40 +0000 (11:48 +0200)
commit01d467defd2ff68a270ed23d9a619aa22d6a02f6
tree4c4be4378e449255d1818ae68e031a87482d1ad7
parent5fd6695c090ddecb77e8324b6d6fb8b8fe43860a
marshal: use zero-sized array instead of flexible arrays

With gcc 2.96, flexible arrays are not supported, even with
-std=gnu99. And with gcc 3.x, zero-sized arrays cannot be statically
initialized (with more than one element).
src/display.c
src/marshal.c
src/marshal.h