summaryrefslogtreecommitdiffstats
path: root/minadbd/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'minadbd/transport.c')
-rw-r--r--minadbd/transport.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/minadbd/transport.c b/minadbd/transport.c
index 4c0c97f75..92679f518 100644
--- a/minadbd/transport.c
+++ b/minadbd/transport.c
@@ -713,7 +713,7 @@ int readx(int fd, void *ptr, size_t len)
char *p = ptr;
int r;
#if ADB_TRACE
- int len0 = len;
+ size_t len0 = len;
#endif
D("readx: fd=%d wanted=%d\n", fd, (int)len);
while(len > 0) {
@@ -734,7 +734,7 @@ int readx(int fd, void *ptr, size_t len)
}
#if ADB_TRACE
- D("readx: fd=%d wanted=%d got=%d\n", fd, len0, len0 - len);
+ D("readx: fd=%d wanted=%zu got=%zu\n", fd, len0, len0 - len);
dump_hex( ptr, len0 );
#endif
return 0;