qemu/io
Daniel P. Berrange ccf1e2dcd6 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>
2016-01-20 11:31:01 +00:00
..
channel-buffer.c io: add QIOChannelBuffer class 2015-12-18 12:18:31 +00:00
channel-command.c io: some fixes to handling of /dev/null when running commands 2016-01-20 11:30:56 +00:00
channel-file.c io: add QIOChannelFile class 2015-12-18 12:18:31 +00:00
channel-socket.c io: use memset instead of { 0 } for initializing array 2016-01-20 11:31:01 +00:00
channel-tls.c io: add QIOChannelTLS class 2015-12-18 12:18:31 +00:00
channel-watch.c io: add helper module for creating watches on FDs 2015-12-18 12:18:05 +00:00
channel-websock.c io: add QIOChannelWebsock class 2015-12-18 12:18:31 +00:00
channel.c io: add abstract QIOChannel classes 2015-12-18 12:18:05 +00:00
Makefile.objs io: add QIOChannelBuffer class 2015-12-18 12:18:31 +00:00
task.c io: add QIOTask class for async operations 2015-12-18 12:18:30 +00:00