aboutsummaryrefslogtreecommitdiff
path: root/tests/test-vmstate.c
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2014-07-07 21:03:38 +0200
committerMichael Tokarev <mjt@tls.msk.ru>2014-07-18 17:45:37 +0400
commit748bfb4eee8e699f3d2dd6a95820d1a9e57e4aa6 (patch)
treebefe55dc6ab946c93eae3082d6a013e2ff26754b /tests/test-vmstate.c
parent7a46d042e02e87157c13424df56dd06e9da77e89 (diff)
downloadqemu-748bfb4eee8e699f3d2dd6a95820d1a9e57e4aa6.zip
qemu-748bfb4eee8e699f3d2dd6a95820d1a9e57e4aa6.tar.gz
qemu-748bfb4eee8e699f3d2dd6a95820d1a9e57e4aa6.tar.bz2
tests: Add missing 'static' attributes (fix warnings from smatch)
Smatch also complains about 0 used for pointers, so replace those by NULL in test-visitor-serialization.c, too. Signed-off-by: Stefan Weil <sw@weilnetz.de> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'tests/test-vmstate.c')
-rw-r--r--tests/test-vmstate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-vmstate.c b/tests/test-vmstate.c
index a462335..d72c64c 100644
--- a/tests/test-vmstate.c
+++ b/tests/test-vmstate.c
@@ -29,8 +29,8 @@
#include "migration/vmstate.h"
#include "block/coroutine.h"
-char temp_file[] = "/tmp/vmst.test.XXXXXX";
-int temp_fd;
+static char temp_file[] = "/tmp/vmst.test.XXXXXX";
+static int temp_fd;
/* Fake yield_until_fd_readable() implementation so we don't have to pull the
* coroutine code as dependency.