aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/support
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-02 07:46:55 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-02-02 07:52:49 -0800
commite1a03a61c214086897a85c364d19b87cc900511a (patch)
tree0e30d904017fdbf7a9d1d2d4302fb235f20a2079 /src/core/support
parentc8fd2d1c01f81c4a4f8a6b8a239e0f809fd1001d (diff)
Make _posix usage match 'the rules'
Also fix log_posix to get things compiling.
Diffstat (limited to 'src/core/support')
-rw-r--r--src/core/support/log_posix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/support/log_posix.c b/src/core/support/log_posix.c
index 1292c9e8c3..ab2d2e5a74 100644
--- a/src/core/support/log_posix.c
+++ b/src/core/support/log_posix.c
@@ -64,7 +64,7 @@ void gpr_log(const char *file, int line, gpr_log_severity severity,
va_end(args);
if (ret < 0) {
message = NULL;
- } else if (ret <= sizeof(buf) - 1) {
+ } else if ((size_t)ret <= sizeof(buf) - 1) {
message = buf;
} else {
message = allocated = gpr_malloc(ret + 1);