summaryrefslogtreecommitdiffstats
path: root/scripts/git-submodule.sh
diff options
context:
space:
mode:
authorPeter Maydell2018-11-06 16:13:21 +0100
committerSamuel Thibault2018-11-10 15:07:53 +0100
commit84ec9bfaf239b61bac3e43f708772937401e0e63 (patch)
treec51ce911638e94b4a5d91079c0b85491eccf8901 /scripts/git-submodule.sh
parentslirp: Don't pass possibly -1 fd to send() (diff)
downloadqemu-84ec9bfaf239b61bac3e43f708772937401e0e63.tar.gz
qemu-84ec9bfaf239b61bac3e43f708772937401e0e63.tar.xz
qemu-84ec9bfaf239b61bac3e43f708772937401e0e63.zip
slirp: Use g_new() to allocate sockets in socreate()
The slirp socreate() function can only fail if the attempt to malloc() the struct socket fails. Switch to using g_new() instead, which will allow us to remove the error-handling code from its callers. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'scripts/git-submodule.sh')
0 files changed, 0 insertions, 0 deletions