summaryrefslogtreecommitdiffstats
path: root/src/tests
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2006-02-20 16:09:25 +0000
committerLennart Poettering <lennart@poettering.net>2006-02-20 16:09:25 +0000
commite078f084e44de3c4a87bb4fd7a0be9dbda64b604 (patch)
tree6ec064f7f72e115486e9ca6ec6baac529b252e21 /src/tests
parent4566d56e31c58211763ddbb4669c7f04152669d0 (diff)
explcitily cast strings to make gcc shut up
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@522 fefdeb5f-60dc-0310-8127-8f9354f1896f
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/memblockq-test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tests/memblockq-test.c b/src/tests/memblockq-test.c
index b01084da..e9764627 100644
--- a/src/tests/memblockq-test.c
+++ b/src/tests/memblockq-test.c
@@ -38,28 +38,28 @@ int main(int argc, char *argv[]) {
pa_log_set_maximal_level(PA_LOG_DEBUG);
- silence = pa_memblock_new_fixed("__", 2, 1, NULL);
+ silence = pa_memblock_new_fixed((char*) "__", 2, 1, NULL);
assert(silence);
bq = pa_memblockq_new(0, 40, 10, 2, 4, 4, silence, NULL);
assert(bq);
- chunk1.memblock = pa_memblock_new_fixed("AA", 2, 1, NULL);
+ chunk1.memblock = pa_memblock_new_fixed((char*) "AA", 2, 1, NULL);
chunk1.index = 0;
chunk1.length = 2;
assert(chunk1.memblock);
- chunk2.memblock = pa_memblock_new_fixed("TTBB", 4, 1, NULL);
+ chunk2.memblock = pa_memblock_new_fixed((char*) "TTBB", 4, 1, NULL);
chunk2.index = 2;
chunk2.length = 2;
assert(chunk2.memblock);
- chunk3.memblock = pa_memblock_new_fixed("ZZZZ", 4, 1, NULL);
+ chunk3.memblock = pa_memblock_new_fixed((char*) "ZZZZ", 4, 1, NULL);
chunk3.index = 0;
chunk3.length = 4;
assert(chunk3.memblock);
- chunk4.memblock = pa_memblock_new_fixed("KKKKKKKK", 8, 1, NULL);
+ chunk4.memblock = pa_memblock_new_fixed((char*) "KKKKKKKK", 8, 1, NULL);
chunk4.index = 0;
chunk4.length = 8;
assert(chunk4.memblock);