X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=filter.c;h=37c1c4305e7c82b8140bc4791046f777e9e88662;hp=04997cf29e84c01a7382339271754266028187e2;hb=a8067654fc64119f391ffea59689eea7b3b46105;hpb=4b4c68de8d7390f966e46d9402d5499d2e8ee227 diff --git a/filter.c b/filter.c index 04997cf2..37c1c430 100644 --- a/filter.c +++ b/filter.c @@ -141,7 +141,7 @@ int main(int argc, char *argv[]) again: if (*il < INBUF_SIZE && !eof) { ret = read(STDIN_FILENO, ib + *il, INBUF_SIZE - *il); - PARA_DEBUG_LOG("read %d/%d\n", ret, INBUF_SIZE - *il); + PARA_DEBUG_LOG("read %d/%zd\n", ret, INBUF_SIZE - *il); if (ret < 0) goto out; if (!ret) @@ -154,12 +154,12 @@ again: converted = ret; if (*ol) { ret = write(STDOUT_FILENO, ob, *ol); - PARA_DEBUG_LOG("wrote %d/%d\n", ret, *ol); + PARA_DEBUG_LOG("wrote %d/%zd\n", ret, *ol); if (ret <= 0) goto out; *ol -= ret; if (*ol) { - PARA_NOTICE_LOG("short write: %d bytes left\n", *ol); + PARA_NOTICE_LOG("short write: %zd bytes left\n", *ol); memmove(ob, ob + ret, *ol); } }