X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=recv.c;h=c7bca83a9ada429c8f498ba63735d1b1ff0f3581;hp=aaccb06ac77fcd7bded8ffc46c300039227eabe1;hb=c9f109a9e7f2d6116b7906a852afc339c858c275;hpb=2ed89c59f0efcd0a2763f47c7d3455663241e623 diff --git a/recv.c b/recv.c index aaccb06a..c7bca83a 100644 --- a/recv.c +++ b/recv.c @@ -15,7 +15,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */ -#include "gcc-compat.h" #include "para.h" #include "recv.h" @@ -105,13 +104,13 @@ recv: goto recv; } ret = write(STDOUT_FILENO, rn.buf, rn.loaded); - PARA_DEBUG_LOG("wrote %d/%d\n", ret, rn.loaded); + PARA_DEBUG_LOG("wrote %d/%zd\n", ret, rn.loaded); if (ret < 0) { ret = -E_WRITE_STDOUT; goto out; } if (ret != rn.loaded) { - PARA_INFO_LOG("short write %d/%d\n", ret, rn.loaded); + PARA_INFO_LOG("short write %d/%zd\n", ret, rn.loaded); memmove(rn.buf, rn.buf + ret, rn.loaded - ret); } rn.loaded -= ret; @@ -123,6 +122,6 @@ out: if (r) r->shutdown(); if (ret < 0) - PARA_NOTICE_LOG("%d: (%s)\n", ret, PARA_STRERROR(-ret)); + PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); return ret; }