diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-03-16 15:34:57 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-03-16 15:34:57 -0400 |
commit | 877468c781968ed4b4b745e042e8217e0eec5bf5 (patch) | |
tree | 9218887e69d4e767542fa637d339adcdffe011f1 /src/common/compat_threads.c | |
parent | eca9b3424d4cb166ecaa781a8d32f840912a97a1 (diff) | |
download | tor-877468c781968ed4b4b745e042e8217e0eec5bf5.tar.gz tor-877468c781968ed4b4b745e042e8217e0eec5bf5.zip |
Now, resolve a new 64-bit warning in compat_threads.c
Diffstat (limited to 'src/common/compat_threads.c')
-rw-r--r-- | src/common/compat_threads.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/compat_threads.c b/src/common/compat_threads.c index 889fedeebb..7b28a9494a 100644 --- a/src/common/compat_threads.c +++ b/src/common/compat_threads.c @@ -195,7 +195,7 @@ pipe_alert(int fd) { ssize_t r = write_ni(fd, "x", 1); if (r < 0 && -r != EAGAIN) - return r; + return (int)r; return 0; } @@ -223,7 +223,7 @@ sock_alert(tor_socket_t fd) { ssize_t r = send_ni(fd, "x", 1, 0); if (r < 0 && !ERRNO_IS_EAGAIN(-r)) - return r; + return (int)r; return 0; } @@ -238,7 +238,7 @@ sock_drain(tor_socket_t fd) r = recv_ni(fd, buf, sizeof(buf), 0); } while (r > 0); if (r < 0 && !ERRNO_IS_EAGAIN(-r)) - return r; + return (int)r; /* A value of r = 0 means EOF on the fd so successfully drained. */ return 0; } |