diff options
author | Stefan Weil <sw@weilnetz.de> | 2014-07-07 21:03:38 +0200 |
---|---|---|
committer | Michael Tokarev <mjt@tls.msk.ru> | 2014-07-18 17:45:37 +0400 |
commit | 748bfb4eee8e699f3d2dd6a95820d1a9e57e4aa6 (patch) | |
tree | befe55dc6ab946c93eae3082d6a013e2ff26754b /tests/test-throttle.c | |
parent | 7a46d042e02e87157c13424df56dd06e9da77e89 (diff) |
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-throttle.c')
-rw-r--r-- | tests/test-throttle.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-throttle.c b/tests/test-throttle.c index 3de6ab80e0..000ae31af9 100644 --- a/tests/test-throttle.c +++ b/tests/test-throttle.c @@ -15,10 +15,10 @@ #include "block/aio.h" #include "qemu/throttle.h" -AioContext *ctx; -LeakyBucket bkt; -ThrottleConfig cfg; -ThrottleState ts; +static AioContext *ctx; +static LeakyBucket bkt; +static ThrottleConfig cfg; +static ThrottleState ts; /* useful function */ static bool double_cmp(double x, double y) |