*/
/** \file filter.c the stand-alone filter program */
-#include "gcc-compat.h"
#include "para.h"
#include "filter.cmdline.h"
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)
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);
}
}