* information regarding copyright ownership.
*/
-/* $Id: lwtest.c,v 1.32 2008/04/02 02:37:42 marka Exp $ */
-
#include <config.h>
#include <assert.h>
static void
CHECK(lwres_result_t val, const char *msg) {
if (val != 0) {
- printf("I:%s returned %d\n", msg, val);
+ printf("I:%s returned %u\n", msg, val);
exit(1);
}
}
LWRES_ADDRTYPE_V4 | LWRES_ADDRTYPE_V6,
&res);
if (ret != expected) {
- printf("I:gabn(%s) failed: %d\n", target, ret);
+ printf("I:gabn(%s) failed: %u\n", target, ret);
if (res != NULL)
lwres_gabnresponse_free(ctx, &res);
fails++;
res = NULL;
ret = lwres_getnamebyaddr(ctx, af, len, addrbuf, &res);
if (ret != expected) {
- printf("I:gnba(%s) failed: %d\n", target, ret);
+ printf("I:gnba(%s) failed: %u\n", target, ret);
if (res != NULL)
lwres_gnbaresponse_free(ctx, &res);
fails++;
} else if (ret != 0)
return;
if (rrinfo->rri_nrdatas != nrdatas) {
- printf("I:getrrsetbyname(%s, %d): got %d rr, expected %d\n",
+ printf("I:getrrsetbyname(%s, %d): got %u rr, expected %u\n",
name, rdtype, rrinfo->rri_nrdatas, nrdatas);
fails++;
}
if (rrinfo->rri_nsigs != nsigs) {
- printf("I:getrrsetbyname(%s, %d): got %d sig, expected %d\n",
+ printf("I:getrrsetbyname(%s, %d): got %u sig, expected %u\n",
name, rdtype, rrinfo->rri_nsigs, nsigs);
fails++;
}
return (ISC_R_NOSPACE);
snprintf((char *) isc_buffer_used(out),
(int)isc_buffer_availablelength(out),
- "+%03d+%05d%s", alg, id, suffix);
+ "+%03u+%05d%s", alg, id, suffix);
isc_buffer_add(out, len);
return (ISC_R_SUCCESS);