qemu-e2k/qga
Markus Armbruster f3a06403b8 qga: Use g_new() & friends where that makes obvious sense
g_new(T, n) is neater than g_malloc(sizeof(T) * n).  It's also safer,
for two reasons.  One, it catches multiplication overflowing size_t.
Two, it returns T * rather than void *, which lets the compiler catch
more type errors.

This commit only touches allocations with size arguments of the form
sizeof(T).  Same Coccinelle semantic patch as in commit b45c03f.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-10-19 18:28:06 -05:00
..
installer qemu-ga: Fixed paths issue with MSI build 2015-09-01 11:07:09 -05:00
vss-win32 error: On abort, report where the error was created 2015-09-10 13:48:06 +02:00
channel-posix.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
channel-win32.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
channel.h
commands-posix.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
commands-win32.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
commands.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
guest-agent-command-state.c qga: Use g_new() & friends where that makes obvious sense 2015-10-19 18:28:06 -05:00
guest-agent-core.h qga: Disable unsupported commands by default 2014-08-07 17:15:53 -05:00
main.c qga: add --dump-conf option 2015-09-01 13:16:25 -05:00
Makefile.objs
qapi-schema.json docs: fix a qga/qapi-schema.json comment 2015-09-11 10:21:38 +03:00
service-win32.c
service-win32.h
vss-win32.c error: On abort, report where the error was created 2015-09-10 13:48:06 +02:00
vss-win32.h qga: Consistently name Error ** objects errp, and not err 2014-05-09 09:11:26 -04:00