X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Fseshigh.c;h=52ced9b5e6c92c8ed3d3bb5a9a164e9317c7b6d5;hp=6e18d01dce7eec4e3b3ba46eee34275572e9a62f;hb=bfe768e3b0cf959ed9982a7b6ff6dc9e906820f4;hpb=28d3e3b08a856a66cb90ebf08787f8fa27a772eb diff --git a/src/seshigh.c b/src/seshigh.c index 6e18d01..52ced9b 100644 --- a/src/seshigh.c +++ b/src/seshigh.c @@ -2498,7 +2498,8 @@ static Z_Records *pack_records(association *a, char *setname, Odr_int start, Z_ReferenceId *referenceId, Odr_oid *oid, int *errcode) { - int recno, dumped_records = 0; + int recno; + Odr_int dumped_records = 0; int toget = odr_int_to_int(*num); Z_Records *records = (Z_Records *) odr_malloc(a->encode, sizeof(*records)); @@ -2591,7 +2592,7 @@ static Z_Records *pack_records(association *a, char *setname, Odr_int start, else this_length = odr_total(a->encode) - total_length - dumped_records; yaz_log(log_requestdetail, " fetched record, len=" ODR_INT_PRINTF - " total=" ODR_INT_PRINTF " dumped=%d", + " total=" ODR_INT_PRINTF " dumped=" ODR_INT_PRINTF, this_length, total_length, dumped_records); if (a->preferredMessageSize > 0 && this_length + total_length > a->preferredMessageSize)