summaryrefslogtreecommitdiff
path: root/firmware/test/buflib
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2015-01-11 21:40:51 +0100
committerThomas Jarosch <tomj@simonv.com>2015-01-11 21:40:51 +0100
commit2a3e1628a50b9de7c1462ee95eb79937795f5409 (patch)
tree3c2c965007a71c4895a65d8a91252b9ce2255719 /firmware/test/buflib
parent85c98bc63c6635fe9e337178f23faa9c0ec3f9fb (diff)
Limit more variables to file scope
Change-Id: I30219d626316776eb73b4205d63376fa3dbc6361
Diffstat (limited to 'firmware/test/buflib')
-rw-r--r--firmware/test/buflib/test_main2.c4
-rw-r--r--firmware/test/buflib/test_move2.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/firmware/test/buflib/test_main2.c b/firmware/test/buflib/test_main2.c
index 9fed78612e..da6b1366e7 100644
--- a/firmware/test/buflib/test_main2.c
+++ b/firmware/test/buflib/test_main2.c
@@ -52,12 +52,12 @@ static int shrink_callback(int handle, unsigned hints, void* start, size_t size)
return BUFLIB_CB_CANNOT_SHRINK;
}
-struct buflib_callbacks ops = {
+static struct buflib_callbacks ops = {
.move_callback = move_callback,
.shrink_callback = shrink_callback,
};
-struct buflib_callbacks ops2 = {
+static struct buflib_callbacks ops2 = {
.move_callback = NULL,
.shrink_callback = shrink_callback,
};
diff --git a/firmware/test/buflib/test_move2.c b/firmware/test/buflib/test_move2.c
index 1076c27a50..2f72850b2b 100644
--- a/firmware/test/buflib/test_move2.c
+++ b/firmware/test/buflib/test_move2.c
@@ -80,7 +80,7 @@ struct buflib_callbacks ops = {
.shrink_callback = NULL,
};
-struct buflib_callbacks ops_no_move = {
+static struct buflib_callbacks ops_no_move = {
.move_callback = NULL,
.shrink_callback = NULL,
};