Module: kamailio
Branch: master
Commit: 1db19f1672ebebcb916f4415c59f5c820a1b0068
URL:
https://github.com/kamailio/kamailio/commit/1db19f1672ebebcb916f4415c59f5c8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2016-06-06T12:05:39+02:00
auth_radius: fix compilation warning
authorize.c:110:8: warning: implicit conversion from
enumeration type 'enum auth_cfg_result' to different enumeration type
'auth_result_t' (aka 'enum auth_result') [-Wenum-conversion]
ret = AUTH_NONCE_REUSED;
~ ^~~~~~~~~~~~~~~~~
authorize.c:114:8: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_STALE_NONCE;
~ ^~~~~~~~~~~~~~~~
authorize.c:120:8: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_ERROR;
~ ^~~~~~~~~~
authorize.c:124:8: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_NO_CREDENTIALS;
~ ^~~~~~~~~~~~~~~~~~~
authorize.c:131:8: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_OK;
~ ^~~~~~~
authorize.c:148:9: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_ERROR;
~ ^~~~~~~~~~
authorize.c:153:12: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_ERROR;
~ ^~~~~~~~~~
authorize.c:159:12: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_ERROR;;
~ ^~~~~~~~~~
authorize.c:186:12: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_ERROR;
~ ^~~~~~~~~~
authorize.c:189:12: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_OK;
~ ^~~~~~~
authorize.c:193:8: warning: implicit conversion from enumeration type 'enum
auth_cfg_result' to different enumeration type 'auth_result_t' (aka 'enum
auth_result') [-Wenum-conversion]
ret = AUTH_INVALID_PASSWORD;
~ ^~~~~~~~~~~~~~~~~~~~~
11 warnings generated.
---
Modified: modules/auth_radius/authorize.c
---
Diff:
https://github.com/kamailio/kamailio/commit/1db19f1672ebebcb916f4415c59f5c8…
Patch:
https://github.com/kamailio/kamailio/commit/1db19f1672ebebcb916f4415c59f5c8…
---
diff --git a/modules/auth_radius/authorize.c b/modules/auth_radius/authorize.c
index 18dff11..36c74eb 100644
--- a/modules/auth_radius/authorize.c
+++ b/modules/auth_radius/authorize.c
@@ -74,7 +74,7 @@ static inline int authorize(struct sip_msg* _msg, pv_elem_t* _realm,
pv_spec_t * _uri_user, hdr_types_t _hftype)
{
int res;
- auth_result_t ret;
+ auth_cfg_result_t ret;
struct hdr_field* h;
auth_body_t* cred;
str *uri_user;