Commit bc44a089 authored by Pekka Pessi's avatar Pekka Pessi

test_sresolv.c: silenced sign comparison warnings

darcs-hash:20070202162338-65a35-199a43518b7a8883ad768dd6e423573d5dd9d4ce.gz
parent e0b9e057
......@@ -1654,7 +1654,7 @@ int test_net(sres_context_t *ctx)
bin[i] ^= 0xff;
else
bin[3] ^= SRES_FORMAT_ERR; /* format error -> EDNS0 failure */
n = sendto(c, bin, binlen, 0, sa, salen);
n = su_sendto(c, bin, binlen, 0, sa, salen);
if (i != 1)
bin[i] ^= 0xff;
else
......@@ -1675,10 +1675,10 @@ int test_net(sres_context_t *ctx)
/* We got an error => make new query */
TEST_1(q = sres_query(res, test_answer, ctx, /* Send query */
sres_type_naptr, domain));
TEST_1((n = recvfrom(c, query, sizeof query, 0, sa, &salen)) != -1);
TEST_1((n = su_recvfrom(c, query, sizeof query, 0, sa, &salen)) != -1);
memcpy(bin, query, 2); /* Copy ID */
}
n = sendto(c, bin, i, 0, sa, salen);
n = su_sendto(c, bin, i, 0, sa, salen);
if (n == -1)
perror("sendto");
while (!poll_sockets(ctx))
......
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