1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

unix_msg: Use empty arrays in structs

Just a simple style update

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Volker Lendecke 2014-07-28 12:02:12 +00:00 committed by Jeremy Allison
parent f5efddb9ae
commit 8621870559

View File

@ -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);