From: Michal Voců Date: Mon, 12 Sep 2005 14:40:01 +0000 (+0000) Subject: * updated test case to use modified il_msg X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=5928356a781de1f43a7048ecc0ec752e52083ec2;p=jra1mw.git * updated test case to use modified il_msg --- 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);