]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - filter.c
kill a pointless "optind = 1".
[paraslash.git] / filter.c
index 2e5e205eaed82d5d69e9ff81d7fa39082513a9b4..37c1c4305e7c82b8140bc4791046f777e9e88662 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -17,7 +17,6 @@
  */
 /** \file filter.c the stand-alone filter program */
 
-#include "gcc-compat.h"
 #include "para.h"
 
 #include "filter.cmdline.h"
@@ -142,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)
@@ -155,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);
                }
        }