aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2009-08-01 10:13:20 +0000
committerBlue Swirl <blauwirbel@gmail.com>2009-08-01 10:13:20 +0000
commit7cba04f6dedcf888170496bf8f1857c4069d1131 (patch)
treeaffaa99c83934efb6c95255ee6bf36973f5be860 /qemu-char.c
parentFix Sparse warnings: "Using plain integer as NULL pointer" (diff)
downloadqemu-kvm-7cba04f6dedcf888170496bf8f1857c4069d1131.tar.gz
qemu-kvm-7cba04f6dedcf888170496bf8f1857c4069d1131.tar.bz2
qemu-kvm-7cba04f6dedcf888170496bf8f1857c4069d1131.zip
More NULL pointer fixes
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-char.c')
-rw-r--r--qemu-char.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/qemu-char.c b/qemu-char.c
index 2144d1a47..be2799401 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -1947,7 +1947,7 @@ static void unix_process_msgfd(CharDriverState *chr, struct msghdr *msg)
static ssize_t tcp_chr_recv(CharDriverState *chr, char *buf, size_t len)
{
TCPCharDriver *s = chr->opaque;
- struct msghdr msg = { 0, };
+ struct msghdr msg = { NULL, };
struct iovec iov[1];
union {
struct cmsghdr cmsg;
@@ -2212,7 +2212,7 @@ CharDriverState *qemu_chr_open(const char *label, const char *filename, void (*i
CharDriverState *chr;
if (!strcmp(filename, "vc")) {
- chr = text_console_init(0);
+ chr = text_console_init(NULL);
} else
if (strstart(filename, "vc:", &p)) {
chr = text_console_init(p);