X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=afh.c;h=e419d2708d7224aaa5330515b11d45947c0d5fab;hb=5dcb47606caf94ba1fe3a07f7795890fda3bdcee;hp=567b560a038f0923a663005b447a0fc688c57b2a;hpb=0c7c4d80673854527ce3c3786dd581169565b5e6;p=paraslash.git diff --git a/afh.c b/afh.c index 567b560a..e419d270 100644 --- a/afh.c +++ b/afh.c @@ -159,7 +159,7 @@ static void print_chunk_table(struct afh_info *afhi, int audio_format_id, struct timeval tv; long unsigned from, to; const char *buf; - size_t len; + uint32_t len; tv_scale(i, &afhi->chunk_tv, &tv); from = tv2ms(&tv); tv_scale(i + 1, &afhi->chunk_tv, &tv); @@ -177,7 +177,7 @@ static void print_chunk_table(struct afh_info *afhi, int audio_format_id, printf("%td - %td", buf - (const char *)map, buf + len - (const char *)map); if (!OPT_GIVEN(PARSER_FRIENDLY)) - printf(" (%zu)", len); + printf(" (%u)", len); printf("\n"); } afh_close(ctx, audio_format_id); @@ -258,5 +258,6 @@ out: PARA_ERROR_LOG("%s\n", errctx); if (ret < 0) PARA_EMERG_LOG("%s\n", para_strerror(-ret)); + lls_free_parse_result(lpr, CMD_PTR); return ret < 0? EXIT_FAILURE : EXIT_SUCCESS; }