1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
From 90c105136d52d53a06617002209a158091b09686 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@php.net>
Date: Thu, 28 Jun 2018 10:51:06 +0200
Subject: [PATCH] fix -Wformat and -Wint-in-bool-context warnigngs
---
provider.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/provider.c b/provider.c
index 41eb3be..16d0eed 100644
--- a/provider.c
+++ b/provider.c
@@ -864,11 +864,11 @@ SOP_METHOD(setParam)
sop = fetch_sop_object(pthis);
if (!param_val) {
- RETURN_BOOL(SUCCESS == zend_hash_str_del(sop->custom_params, param_key, param_key_len) ? IS_TRUE : IS_FALSE);
+ RETURN_BOOL(SUCCESS == zend_hash_str_del(sop->custom_params, param_key, param_key_len));
} else {
Z_TRY_ADDREF_P(param_val);
- RETURN_BOOL(NULL != zend_hash_str_add(sop->custom_params, param_key, param_key_len, param_val) ? IS_TRUE : IS_FALSE);
+ RETURN_BOOL(NULL != zend_hash_str_add(sop->custom_params, param_key, param_key_len, param_val));
}
}
/* }}} */
@@ -1048,7 +1048,7 @@ SOP_METHOD(reportProblem)
default:
http_code = OAUTH_ERR_INTERNAL_ERROR;
out = emalloc(48);
- snprintf(out, 48, "oauth_problem=unknown_problem&code=%d", lcode);
+ snprintf(out, 48, "oauth_problem=unknown_problem&code=%lu", lcode);
out_malloced = 1;
}
|