From 8621870559c6274eaa645aa47109c75ebc190278 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 28 Jul 2014 12:02:12 +0000 Subject: [PATCH] unix_msg: Use empty arrays in structs Just a simple style update Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/lib/unix_msg/unix_msg.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source3/lib/unix_msg/unix_msg.c b/source3/lib/unix_msg/unix_msg.c index f3185a3b526..6728fc93a0c 100644 --- a/source3/lib/unix_msg/unix_msg.c +++ b/source3/lib/unix_msg/unix_msg.c @@ -43,7 +43,7 @@ struct unix_dgram_msg { ssize_t sent; int sys_errno; size_t buflen; - uint8_t buf[1]; + uint8_t buf[]; }; struct unix_dgram_send_queue { @@ -51,7 +51,7 @@ struct unix_dgram_send_queue { struct unix_dgram_ctx *ctx; int sock; struct unix_dgram_msg *msgs; - char path[1]; + char path[]; }; struct unix_dgram_ctx { @@ -72,7 +72,7 @@ struct unix_dgram_ctx { struct poll_watch *pool_read_watch; uint8_t *recv_buf; - char path[1]; + char path[]; }; static ssize_t iov_buflen(const struct iovec *iov, int iovlen);