From 5928356a781de1f43a7048ecc0ec752e52083ec2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Voc=C5=AF?= Date: Mon, 12 Sep 2005 14:40:01 +0000 Subject: [PATCH] * updated test case to use modified il_msg --- org.glite.lb.common/test/il_msg_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org.glite.lb.common/test/il_msg_test.cpp b/org.glite.lb.common/test/il_msg_test.cpp index 230b6f1..99c0311 100644 --- a/org.glite.lb.common/test/il_msg_test.cpp +++ b/org.glite.lb.common/test/il_msg_test.cpp @@ -67,7 +67,7 @@ public: int l; char *s; - l = read_il_data(&s, test_reader); + l = read_il_data(/*user data*/NULL, &s, test_reader); CPPUNIT_ASSERT_EQUAL(l, 18); CPPUNIT_ASSERT(s != NULL); CPPUNIT_ASSERT(!strcmp(s, "6 michal\n6 zprava\n")); @@ -80,7 +80,7 @@ private: static const char *msg, *rep; static int pos; - static int test_reader(char *buf, int len) { + static int test_reader(void *user_data, char *buf, int len) { strncpy(buf, msg+pos, len); pos += len; return(len); -- 1.8.2.3