--- sa_test.c 2002/10/30 18:46:22 1.19
+++ sa_test.c 2002/10/30 19:09:35 1.20
@@ -289,8 +289,7 @@
if (strncmp(buf_srv, MSG_UDP_CLT_REQUEST, l) != 0)
ts_test_fail(TS_CTX, "server: got \"%s\", expected \"%s\"",
buf_srv, MSG_UDP_CLT_REQUEST);
- ex(SRV, sa_send(sa_srv, MSG_UDP_SRV_RESPONSE,
- strlen(MSG_UDP_SRV_RESPONSE), &l, saa_clt));
+ ex(SRV, sa_sendf(sa_srv, saa_clt, "%s", MSG_UDP_SRV_RESPONSE));
ex(SRV, sa_addr_destroy(saa_clt));
/* destroy server socket and die */
@@ -311,8 +310,7 @@
/* communicate with server */
ex(CLT, sa_addr_create(&saa_srv));
ex(CLT, sa_addr_u2a(saa_srv, "inet://127.0.0.1:12345#udp"));
- ex(CLT, sa_send(sa_clt, MSG_UDP_CLT_REQUEST,
- strlen(MSG_UDP_CLT_REQUEST), &l, saa_srv));
+ ex(CLT, sa_sendf(sa_clt, saa_srv, "%s", MSG_UDP_CLT_REQUEST));
ex(CLT, sa_addr_destroy(saa_srv));
ex(CLT, sa_recv(sa_clt, buf_clt, sizeof(buf_clt), &l, &saa_srv));
if (strncmp(buf_clt, MSG_UDP_SRV_RESPONSE, l) != 0)
|