From: Adam Dickmeiss Date: Tue, 16 Jun 2009 09:01:24 +0000 (+0200) Subject: Add type casts for tests for C++ compile X-Git-Tag: v3.0.47~2^2~1 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=2cc3fc3eb644f09db82f30906e8d9a09601f544e;p=yaz-moved-to-github.git Add type casts for tests for C++ compile --- diff --git a/test/tst_record_conv.c b/test/tst_record_conv.c index 2ca35d0..ffe3c4f 100644 --- a/test/tst_record_conv.c +++ b/test/tst_record_conv.c @@ -182,10 +182,12 @@ static int conv_convert_test(yaz_record_conv_t p, else if (strcmp(output_expect_record, wrbuf_cstr(output_record))) { ret = 0; - printf("got-output_record len=%d: %s\n", - wrbuf_len(output_record),wrbuf_cstr(output_record)); - printf("output_expect_record len=%d %s\n", - strlen(output_expect_record), output_expect_record); + printf("got-output_record len=%ld: %s\n", + (long) wrbuf_len(output_record), + wrbuf_cstr(output_record)); + printf("output_expect_record len=%ld %s\n", + (long) strlen(output_expect_record), + output_expect_record); } else { diff --git a/test/tstxmalloc.c b/test/tstxmalloc.c index 4d5f8e5..c43e265 100644 --- a/test/tstxmalloc.c +++ b/test/tstxmalloc.c @@ -16,9 +16,9 @@ void tst(void) { char *p = 0; - p = xmalloc(10); + p = (char *) xmalloc(10); YAZ_CHECK(p); - p = xrealloc(p, 20); + p = (char *) xrealloc(p, 20); YAZ_CHECK(p); xfree(p);