Commit b488cd3e authored by Kai Vehmanen's avatar Kai Vehmanen
Browse files

Avoid preprocessor warning in tport about redefining version.

darcs-hash:20060908091508-7659e-0c8e1cd6583e768970b795f815c65cd2cc41734d.gz
parent 9f2f3bb1
......@@ -261,7 +261,7 @@ static int test_msg_md5(tp_test_t *tt, msg_t *msg)
END();
}
#define VERSION MSG_TEST_VERSION_CURRENT
#define TPORT_TEST_VERSION MSG_TEST_VERSION_CURRENT
static int new_test_msg(tp_test_t *tt, msg_t **retval,
char const *ident,
......@@ -292,7 +292,7 @@ static int new_test_msg(tp_test_t *tt, msg_t **retval,
TEST(msg_maxsize(msg, 1024 + N * len), 0);
TEST_1(rq = msg_request_make(home, "DO im:foo@faa " VERSION));
TEST_1(rq = msg_request_make(home, "DO im:foo@faa " TPORT_TEST_VERSION));
TEST(msg_header_insert(msg, (void *)tst, (msg_header_t *)rq), 0);
TEST_1(u = msg_unknown_make(home, "Foo: faa"));
......@@ -725,7 +725,7 @@ static int udp_test(tp_test_t *tt)
TEST_1(tst = msg_test_public(msg));
TEST_1(home = msg_home(msg));
TEST_1(rq = msg_request_make(home, "DO im:foo@faa " VERSION));
TEST_1(rq = msg_request_make(home, "DO im:foo@faa " TPORT_TEST_VERSION));
TEST(msg_header_insert(msg, (void *)tst, (msg_header_t *)rq), 0);
TEST_1(u = msg_unknown_make(home, "Foo: faa"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment