[sr-dev] git:master:64091168: cdp: fix compilation warning

Victor Seva linuxmaniac at torreviejawireless.org
Tue Jun 7 12:19:52 CEST 2016


Module: kamailio
Branch: master
Commit: 64091168246c28b560e79ad0a19d1f97c12cb894
URL: https://github.com/kamailio/kamailio/commit/64091168246c28b560e79ad0a19d1f97c12cb894

Author: Victor Seva <linuxmaniac at torreviejawireless.org>
Committer: Victor Seva <linuxmaniac at torreviejawireless.org>
Date: 2016-06-06T12:05:39+02:00

cdp: fix compilation warning

> diameter_msg.c:443:10: warning: implicit conversion from enumeration type 'AAAReturnCode' to different enumeration type 'AAAResultCode' [-Wenum-conversion]
>                 return AAA_ERR_SUCCESS;
>                 ~~~~~~ ^~~~~~~~~~~~~~~
> 1 warning generated.

---

Modified: modules/cdp/diameter_api.h
Modified: modules/cdp/diameter_msg.c

---

Diff:  https://github.com/kamailio/kamailio/commit/64091168246c28b560e79ad0a19d1f97c12cb894.diff
Patch: https://github.com/kamailio/kamailio/commit/64091168246c28b560e79ad0a19d1f97c12cb894.patch

---

diff --git a/modules/cdp/diameter_api.h b/modules/cdp/diameter_api.h
index c0d0495..f9ba418 100644
--- a/modules/cdp/diameter_api.h
+++ b/modules/cdp/diameter_api.h
@@ -76,7 +76,7 @@ typedef AAAReturnCode  (*AAAFreeAVPList_f)(AAA_AVP_LIST *avpList);
 
 
 
-AAAResultCode AAASetMessageResultCode(AAAMessage *message,AAAResultCode resultCode);
+AAAReturnCode AAASetMessageResultCode(AAAMessage *message,AAAResultCode resultCode);
 
 void AAAPrintMessage(AAAMessage *msg);
 
diff --git a/modules/cdp/diameter_msg.c b/modules/cdp/diameter_msg.c
index 0814a93..3630d40 100644
--- a/modules/cdp/diameter_msg.c
+++ b/modules/cdp/diameter_msg.c
@@ -434,7 +434,7 @@ AAAReturnCode  AAAFreeMessage(AAAMessage **msg)
  * @param resultCode - code to set as result
  * \note This function is taken from DISC http://developer.berlios.de/projects/disc/
  */
-AAAResultCode  AAASetMessageResultCode(
+AAAReturnCode  AAASetMessageResultCode(
 		AAAMessage *message,
 		AAAResultCode resultCode)
 {




More information about the sr-dev mailing list