diff options
author | Mark Salyzyn <salyzyn@google.com> | 2014-03-14 09:39:48 -0700 |
---|---|---|
committer | Mark Salyzyn <salyzyn@google.com> | 2014-03-14 13:51:39 -0700 |
commit | f3bb31c32fa879ccce358c15c93b7bd8582d1756 (patch) | |
tree | 0ce9c3520be76db70f29a63fca0b895a028934af /minadbd | |
parent | a7266ef0b1804e3ddeea58bda9a416e807a55f88 (diff) | |
download | bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.zip bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.gz bootable_recovery-f3bb31c32fa879ccce358c15c93b7bd8582d1756.tar.bz2 |
Recovery 64-bit compile issues
Change-Id: I92d5abd1a628feab3b0246924fab7f97ba3b9d34
Diffstat (limited to 'minadbd')
-rw-r--r-- | minadbd/sockets.c | 3 | ||||
-rw-r--r-- | minadbd/transport.c | 4 | ||||
-rw-r--r-- | minadbd/usb_linux_client.c | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/minadbd/sockets.c b/minadbd/sockets.c index 2dd6461..817410d 100644 --- a/minadbd/sockets.c +++ b/minadbd/sockets.c @@ -319,7 +319,8 @@ static void local_socket_event_func(int fd, unsigned ev, void *_s) while(avail > 0) { r = adb_read(fd, x, avail); - D("LS(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%d\n", s->id, s->fd, r, r<0?errno:0, avail); + D("LS(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%zu\n", + s->id, s->fd, r, r<0?errno:0, avail); if(r > 0) { avail -= r; x += r; diff --git a/minadbd/transport.c b/minadbd/transport.c index 4c0c97f..92679f5 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; diff --git a/minadbd/usb_linux_client.c b/minadbd/usb_linux_client.c index c135d63..29bab15 100644 --- a/minadbd/usb_linux_client.c +++ b/minadbd/usb_linux_client.c @@ -388,7 +388,7 @@ static int bulk_read(int bulk_out, char *buf, size_t length) ret = adb_read(bulk_out, buf + count, length - count); if (ret < 0) { if (errno != EINTR) { - D("[ bulk_read failed fd=%d length=%d count=%d ]\n", + D("[ bulk_read failed fd=%d length=%zu count=%zu ]\n", bulk_out, length, count); return ret; } |