aboutsummaryrefslogtreecommitdiff
path: root/io/channel-tls.c
diff options
context:
space:
mode:
authorDaniel P. Berrange <berrange@redhat.com>2016-01-18 10:37:21 +0000
committerDaniel P. Berrange <berrange@redhat.com>2016-01-20 11:31:01 +0000
commitccf1e2dcd6091eea1fc2341c63201aa1a6094978 (patch)
treeee7c88b7692b163a36a351097aa1634a9d88b67c /io/channel-tls.c
parent821791b5055788937ddfa67a183c0ff54129efe4 (diff)
downloadqemu-ccf1e2dcd6091eea1fc2341c63201aa1a6094978.zip
qemu-ccf1e2dcd6091eea1fc2341c63201aa1a6094978.tar.gz
qemu-ccf1e2dcd6091eea1fc2341c63201aa1a6094978.tar.bz2
io: use memset instead of { 0 } for initializing array
Some versions of GCC on OS-X complain about CMSG_SPACE not being constant size, which prevents use of { 0 } io/channel-socket.c: In function 'qio_channel_socket_writev': io/channel-socket.c:497:18: error: variable-sized object may not be initialized char control[CMSG_SPACE(sizeof(int) * SOCKET_MAX_FDS)] = { 0 }; The compiler is at fault here, but it is nicer to avoid tickling this compiler bug by using memset instead. Reviewed-By: John Arbuckle <programmingkidx@gmail.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'io/channel-tls.c')
0 files changed, 0 insertions, 0 deletions