drop zero-length array if_name
Historically an empty array name can be used to cleanly jump into a
structure without actually taking up space. The idea behind this was
that the array itself was somewhat optional. I'm certain there was
more to it than this, but it's used primarily to indicate there's
something of unknown length following a well-defined structure.
ISO C++ forbids zero-size array.
One can get around this limitation by just jumping by the length of the
structure.
Change-Id: Ie5fe0d01f4b159d9150c5135591c0422fb2c79e0
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/ethstats.hpp b/ethstats.hpp
index ac170aa..12805de 100644
--- a/ethstats.hpp
+++ b/ethstats.hpp
@@ -12,7 +12,6 @@
{
uint8_t statId;
uint8_t if_name_len;
- uint8_t if_name[0];
} __attribute__((packed));
/**