[asterisk-commits] mmichelson: branch group/pimp_my_sip r379039 - /team/group/pimp_my_sip/res/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Jan 14 10:28:56 CST 2013


Author: mmichelson
Date: Mon Jan 14 10:28:52 2013
New Revision: 379039

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=379039
Log:
Fix 64-bit compilation of res_sip


Modified:
    team/group/pimp_my_sip/res/res_sip.c

Modified: team/group/pimp_my_sip/res/res_sip.c
URL: http://svnview.digium.com/svn/asterisk/team/group/pimp_my_sip/res/res_sip.c?view=diff&rev=379039&r1=379038&r2=379039
==============================================================================
--- team/group/pimp_my_sip/res/res_sip.c (original)
+++ team/group/pimp_my_sip/res/res_sip.c Mon Jan 14 10:28:52 2013
@@ -45,10 +45,10 @@
 		return -1;
 	}
 	if (pjsip_endpt_register_module(ast_pjsip_endpoint, module) != PJ_SUCCESS) {
-		ast_log(LOG_ERROR, "Unable to register module %.*s\n", pj_strlen(&module->name), pj_strbuf(&module->name));
-		return -1;
-	}
-	ast_debug(1, "Registered SIP service %.*s\n", pj_strlen(&module->name), pj_strbuf(&module->name));
+		ast_log(LOG_ERROR, "Unable to register module %.*s\n", (int) pj_strlen(&module->name), pj_strbuf(&module->name));
+		return -1;
+	}
+	ast_debug(1, "Registered SIP service %.*s\n", (int) pj_strlen(&module->name), pj_strbuf(&module->name));
 	return 0;
 }
 
@@ -58,7 +58,7 @@
 		return;
 	}
 	pjsip_endpt_unregister_module(ast_pjsip_endpoint, module);
-	ast_debug(1, "Unregistered SIP service %.*s\n", pj_strlen(&module->name), pj_strbuf(&module->name));
+	ast_debug(1, "Unregistered SIP service %.*s\n", (int) pj_strlen(&module->name), pj_strbuf(&module->name));
 }
 
 AO2_GLOBAL_OBJ_STATIC(registered_authenticator);




More information about the asterisk-commits mailing list