# HG changeset patch # User Matti Hamalainen # Date 1420490390 -7200 # Node ID 0d2a46526349d98a9c394aa8154e728a24c3a374 # Parent fdea1c3acc533015b264bf24b228f88cad66bc4d Portability fixes. diff -r fdea1c3acc53 -r 0d2a46526349 th_network.c --- a/th_network.c Thu Jan 01 09:22:27 2015 +0200 +++ b/th_network.c Mon Jan 05 22:39:50 2015 +0200 @@ -943,8 +943,8 @@ fprintf(f, "\n--------------------------------------------------------------\n" - "err=%d, status=%d, got_bytes=%d, total_bytes=%d\n" - "buf=0x%p, in_ptr=0x%04x, ptr=0x%04x\n", + "err=%d, status=%d, got_bytes=%zd, total_bytes=%zd\n" + "buf=0x%p, in_ptr=0x%04zx, ptr=0x%04zx\n", conn->err, conn->status, conn->base.got_bytes, conn->base.total_bytes, conn->base.buf, conn->base.in_ptr - conn->base.buf, conn->base.ptr - conn->base.buf); @@ -956,7 +956,7 @@ left -= amount; // Dump offs | xx xx xx xx | and fill string - fprintf(f, "%04x | ", offs); + fprintf(f, "%04zx | ", offs); for (bufoffs = 0; bufoffs < amount; offs++, bufoffs++, p++) { fprintf(f, "%02x ", *p);