summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2013-04-28 10:45:27 +0200
committerYorhel <git@yorhel.nl>2013-04-28 10:45:27 +0200
commitabd84783d1f65dd76bdcfd89a5bb1c31528e4528 (patch)
treea4b4cc7db38f594a21206582de5a763928a8503f
parent7220961f3e1c799e3cd832efe9625c7e4fd1479e (diff)
util/netutil: User proper C99 flexible array member
Actually specifying an array length invokes undefined behaviour. (Not that I know of any compiler which uses array lengths within structs for anything other than determining the size of the struct, but let's just follow the spec.)
-rw-r--r--src/util/netutil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/netutil.h b/src/util/netutil.h
index 8ffd1c6..fc89dfd 100644
--- a/src/util/netutil.h
+++ b/src/util/netutil.h
@@ -61,7 +61,7 @@ struct net_getaddrinfo_t {
uint16_t service; /* in */
int ret; /* out */
struct addrinfo *lst; /* out */
- char node[1]; /* in (sentinel) */
+ char node[]; /* in (flexible array member) */
};