Merge branch 'develop' of github.com:verisign/getdns into develop

This commit is contained in:
W.C.A. Wijngaards 2014-02-04 10:15:25 +01:00
commit e8d7f1b3e8
2 changed files with 4 additions and 5 deletions

View File

@ -610,9 +610,8 @@ getdns_pp_list(ldns_buffer * buf, size_t indent, struct getdns_list *list)
switch (dtype) { switch (dtype) {
case t_int: case t_int:
if (getdns_list_get_int(list, i, &int_item) != if (getdns_list_get_int(list, i, &int_item) !=
GETDNS_RETURN_GOOD) GETDNS_RETURN_GOOD ||
if (ldns_buffer_printf(buf, " %d", ldns_buffer_printf(buf, "%d", (int) int_item) < 0)
(int) int_item) < 0)
return -1; return -1;
break; break;

View File

@ -46,7 +46,7 @@ static const char pretty_expected[] = "{\n"
" \"int\": 8,\n" " \"int\": 8,\n"
" \"list\":\n" " \"list\":\n"
" [\n" " [\n"
" 10 \n" " 10\n"
" ]\n" " ]\n"
" },\n" " },\n"
" [\n" " [\n"