* 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"
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;
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;
}