aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2007-12-09 11:03:28 +0200
committerLasse Collin <lasse.collin@tukaani.org>2007-12-09 11:03:28 +0200
commit2bf36d22d2c24ac3f488e63b35564fa2f6dab8d1 (patch)
tree61aac614d0c9291177407eb81e5086c18f349931 /tests
parentImported to git. (diff)
downloadxz-2bf36d22d2c24ac3f488e63b35564fa2f6dab8d1.tar.xz
Fixed the tests to build with -Werror.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_block_header.c2
-rw-r--r--tests/test_check.c2
-rw-r--r--tests/test_filter_flags.c2
-rw-r--r--tests/test_index.c14
-rw-r--r--tests/test_info.c2
-rw-r--r--tests/test_stream_flags.c2
6 files changed, 12 insertions, 12 deletions
diff --git a/tests/test_block_header.c b/tests/test_block_header.c
index c6767e38..b50198ce 100644
--- a/tests/test_block_header.c
+++ b/tests/test_block_header.c
@@ -337,7 +337,7 @@ test4(void)
int
-main()
+main(void)
{
lzma_init();
diff --git a/tests/test_check.c b/tests/test_check.c
index 14df375a..cb6b8ec1 100644
--- a/tests/test_check.c
+++ b/tests/test_check.c
@@ -79,7 +79,7 @@ test_crc64(void)
int
-main()
+main(void)
{
bool error = false;
diff --git a/tests/test_filter_flags.c b/tests/test_filter_flags.c
index 0a16f21a..bab344ae 100644
--- a/tests/test_filter_flags.c
+++ b/tests/test_filter_flags.c
@@ -310,7 +310,7 @@ test_lzma(void)
int
-main()
+main(void)
{
lzma_init();
diff --git a/tests/test_index.c b/tests/test_index.c
index 399963d3..2c006045 100644
--- a/tests/test_index.c
+++ b/tests/test_index.c
@@ -21,21 +21,21 @@
int
-main()
+main(void)
{
- lzma_index index[3] = {
- { 22, 33, index + 1 },
- { 44, 55, index + 2 },
+ lzma_index my_index[3] = {
+ { 22, 33, my_index + 1 },
+ { 44, 55, my_index + 2 },
{ 66, 77, NULL },
};
- lzma_index *i = lzma_index_dup(index, NULL);
+ lzma_index *i = lzma_index_dup(my_index, NULL);
expect(i != NULL);
- expect(lzma_index_is_equal(index, i));
+ expect(lzma_index_is_equal(my_index, i));
i->next->next->uncompressed_size = 99;
- expect(!lzma_index_is_equal(index, i));
+ expect(!lzma_index_is_equal(my_index, i));
lzma_index_free(i, NULL);
diff --git a/tests/test_info.c b/tests/test_info.c
index e7899ef3..c073fafe 100644
--- a/tests/test_info.c
+++ b/tests/test_info.c
@@ -693,7 +693,7 @@ test9(void)
int
-main()
+main(void)
{
lzma_init();
diff --git a/tests/test_stream_flags.c b/tests/test_stream_flags.c
index 4cd22576..99e55d5e 100644
--- a/tests/test_stream_flags.c
+++ b/tests/test_stream_flags.c
@@ -162,7 +162,7 @@ test_decode_invalid(void)
int
-main()
+main(void)
{
lzma_init();