From e57b26951a7af6095b3fc2f5b70a3bbb1bdacf75 Mon Sep 17 00:00:00 2001 From: Vladimir Veljkovic Date: Thu, 5 Oct 2017 22:57:31 +0200 Subject: [PATCH] Fix warnings/bad typing --- openssl/pbpal_openssl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/openssl/pbpal_openssl.c b/openssl/pbpal_openssl.c index 84df10e1..3ec17b79 100644 --- a/openssl/pbpal_openssl.c +++ b/openssl/pbpal_openssl.c @@ -337,7 +337,7 @@ enum pubnub_res pbpal_read_status(pubnub_t *pb) if (pb->len == 0) { pb->sock_state = STATE_NONE; - return true; + return PNR_OK; } if (pb->left == 0) { @@ -353,10 +353,9 @@ enum pubnub_res pbpal_read_status(pubnub_t *pb) } else { pb->sock_state = STATE_NEWDATA_EXHAUSTED; - return false; } - return true; + return PNR_IN_PROGRESS; }