X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=util%2Fmarcdump.c;h=d4f59c15a293bacff65d8a5d38dd1d1076b6b43f;hb=acbea5b1df81001dc8c0e1eb75386796dde425b3;hp=e0565932d6201a9d70b87e726a95cfed4c314a3e;hpb=626ee9b09c95c3585c432623c042872b0d1fea92;p=yaz-moved-to-github.git diff --git a/util/marcdump.c b/util/marcdump.c index e056593..d4f59c1 100644 --- a/util/marcdump.c +++ b/util/marcdump.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: marcdump.c,v 1.36 2006-04-19 10:05:04 adam Exp $ + * $Id: marcdump.c,v 1.38 2006-06-07 10:51:14 adam Exp $ */ #define _FILE_OFFSET_BITS 64 @@ -129,9 +129,9 @@ static void dump(const char *fname, const char *from, const char *to, int marc_no = 0; for(;; marc_no++) { - int len; + size_t len; char *result = 0; - int rlen; + size_t rlen; size_t r; char buf[100001]; @@ -139,7 +139,8 @@ static void dump(const char *fname, const char *from, const char *to, if (r < 5) { if (r && print_offset && verbose) - printf ("\n", r); + printf ("\n", + (long) r); break; } while (*buf < '0' || *buf > '9') @@ -211,7 +212,7 @@ static void dump(const char *fname, const char *from, const char *to, if (r > 0 && cfile) { char *p = buf; - int i; + size_t i; if (count) fprintf (cfile, ","); fprintf (cfile, "\n");