summaryrefslogtreecommitdiffstats
path: root/src/sord_test.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-09 00:01:07 +0000
committerDavid Robillard <d@drobilla.net>2012-08-09 00:01:07 +0000
commita4be30c59cd6452ab595d221bc4e97bab00517a7 (patch)
tree1bd6d196e8236dca2dfa993dbc356869d718025b /src/sord_test.c
parentfcaa07ca53ae5a4e586117fa72bd92de903affef (diff)
downloadsord-a4be30c59cd6452ab595d221bc4e97bab00517a7.tar.gz
sord-a4be30c59cd6452ab595d221bc4e97bab00517a7.tar.bz2
sord-a4be30c59cd6452ab595d221bc4e97bab00517a7.zip
Fix warnings: -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wmissing-prototypes.
git-svn-id: http://svn.drobilla.net/sord/trunk@244 3d64ff67-21c5-427c-a301-fe4f08042e5a
Diffstat (limited to 'src/sord_test.c')
-rw-r--r--src/sord_test.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sord_test.c b/src/sord_test.c
index b871181..a7a74e5 100644
--- a/src/sord_test.c
+++ b/src/sord_test.c
@@ -38,13 +38,13 @@ uri(SordWorld* world, int num)
if (num == 0)
return 0;
- char uri[] = "eg:000";
- char* uri_num = uri + 3; // First `0'
+ char str[] = "eg:000";
+ char* uri_num = str + 3; // First `0'
snprintf(uri_num, DIGITS + 1, "%0*d", DIGITS, num);
- return sord_new_uri(world, (const uint8_t*)uri);
+ return sord_new_uri(world, (const uint8_t*)str);
}
-int
+static int
test_fail(const char* fmt, ...)
{
va_list args;
@@ -55,7 +55,7 @@ test_fail(const char* fmt, ...)
return 1;
}
-int
+static int
generate(SordWorld* world,
SordModel* sord,
size_t n_quads,
@@ -175,7 +175,7 @@ generate(SordWorld* world,
((t)[1] ? sord_node_get_string((t)[1]) : USTR("*")), \
((t)[2] ? sord_node_get_string((t)[2]) : USTR("*"))
-int
+static int
test_read(SordWorld* world, SordModel* sord, SordNode* g,
const size_t n_quads)
{