summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dict_bench.c2
-rw-r--r--test/ring_test.c6
-rw-r--r--test/sem_test.c4
-rw-r--r--test/sorted_array_test.c2
-rw-r--r--test/tree_test.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/test/dict_bench.c b/test/dict_bench.c
index 923ec5d..228d25c 100644
--- a/test/dict_bench.c
+++ b/test/dict_bench.c
@@ -30,7 +30,7 @@
#include "zix/patree.h"
#include "zix/trie.h"
-const unsigned seed = 1;
+static const unsigned seed = 1;
static int
test_fail(const char* fmt, ...)
diff --git a/test/ring_test.c b/test/ring_test.c
index 85815a8..c1ab0fd 100644
--- a/test/ring_test.c
+++ b/test/ring_test.c
@@ -25,9 +25,9 @@
#define MSG_SIZE 20
-ZixRing* ring = 0;
-unsigned n_writes = 0;
-bool read_error = false;
+static ZixRing* ring = 0;
+static unsigned n_writes = 0;
+static bool read_error = false;
static int
failure(const char* fmt, ...)
diff --git a/test/sem_test.c b/test/sem_test.c
index bcc4116..9dffe1f 100644
--- a/test/sem_test.c
+++ b/test/sem_test.c
@@ -22,8 +22,8 @@
#include "zix/sem.h"
#include "zix/thread.h"
-ZixSem sem;
-unsigned n_signals = 1024;
+static ZixSem sem;
+static unsigned n_signals = 1024;
static void*
reader(void* arg)
diff --git a/test/sorted_array_test.c b/test/sorted_array_test.c
index e7faa7a..f1fa9a8 100644
--- a/test/sorted_array_test.c
+++ b/test/sorted_array_test.c
@@ -29,7 +29,7 @@
#include "zix/common.h"
#include "zix/sorted_array.h"
-unsigned seed = 1;
+static unsigned seed = 1;
static int
int_cmp(const void* a, const void* b, const void* user_data)
diff --git a/test/tree_test.c b/test/tree_test.c
index ac85ea4..29fba58 100644
--- a/test/tree_test.c
+++ b/test/tree_test.c
@@ -28,7 +28,7 @@
#include "zix/zix.h"
-unsigned seed = 1;
+static unsigned seed = 1;
static int
int_cmp(const void* a, const void* b, const void* user_data)