
10 Mar
2014
10 Mar
'14
10:48 p.m.
Eric Blake <eblake@redhat.com> wrote on 03/10/2014 05:49:54 PM:
Indeed:
$ git grep memset.*1 src/conf/domain_conf.c: memset(max_idx, -1, sizeof(max_idx)); src/qemu/qemu_command.c: memset(tapfd, -1, tapfdSize * sizeof(tapfd[0])); src/qemu/qemu_command.c: memset(vhostfd, -1, vhostfdSize * sizeof(vhostfd[0]));
So let's just copy that convention, instead of adding a new macro.
ACK to the qemu_hotplug fixes if you switch to raw memset.
Pushed.