[asterisk-commits] trunk r33398 - in /trunk: apps/ codecs/lpc10/
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Fri Jun 9 16:13:53 MST 2006
Author: kpfleming
Date: Fri Jun 9 18:13:52 2006
New Revision: 33398
URL: http://svn.digium.com/view/asterisk?rev=33398&view=rev
Log:
get rid of some more compiler warnings (thanks tholo for making me fix the lpc10 stuff... that had been a problem for far too long)
Modified:
trunk/apps/app_osplookup.c
trunk/codecs/lpc10/lpc10.h
trunk/codecs/lpc10/lpcini.c
Modified: trunk/apps/app_osplookup.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_osplookup.c?rev=33398&r1=33397&r2=33398&view=diff
==============================================================================
--- trunk/apps/app_osplookup.c (original)
+++ trunk/apps/app_osplookup.c Fri Jun 9 18:13:52 2006
@@ -162,7 +162,7 @@
}
}
ast_log(LOG_DEBUG, "OSPAuth: source '%s'\n", source);
- ast_log(LOG_DEBUG, "OSPAuth: token size '%d'\n", strlen(token));
+ ast_log(LOG_DEBUG, "OSPAuth: token size '%zd'\n", strlen(token));
res = ast_osp_auth(provider, &handle, source, chan->cid.cid_num, chan->exten, token, &timelimit);
if (res > 0) {
@@ -294,11 +294,11 @@
pbx_builtin_setvar_helper(chan, "OSPCALLING", result.calling);
ast_log(LOG_DEBUG, "OSPLookup: OSPCALLING '%s'\n", result.calling);
pbx_builtin_setvar_helper(chan, "OSPOUTTOKEN", result.token);
- ast_log(LOG_DEBUG, "OSPLookup: OSPOUTTOKEN size '%d'\n", strlen(result.token));
+ ast_log(LOG_DEBUG, "OSPLookup: OSPOUTTOKEN size '%zd'\n", strlen(result.token));
if (!ast_strlen_zero(result.token)) {
snprintf(buffer, sizeof(buffer), "P-OSP-Auth-Token: %s", result.token);
pbx_builtin_setvar_helper(chan, "_SIPADDHEADER", buffer);
- ast_log(LOG_DEBUG, "OSPLookup: SIPADDHEADER size '%d'\n", strlen(buffer));
+ ast_log(LOG_DEBUG, "OSPLookup: SIPADDHEADER size '%zd'\n", strlen(buffer));
}
snprintf(buffer, sizeof(buffer), "%d", result.numresults);
pbx_builtin_setvar_helper(chan, "OSPRESULTS", buffer);
@@ -440,11 +440,11 @@
pbx_builtin_setvar_helper(chan, "OSPCALLING", result.calling);
ast_log(LOG_DEBUG, "OSPNext: OSPCALLING '%s'\n", result.calling);
pbx_builtin_setvar_helper(chan, "OSPOUTTOKEN", result.token);
- ast_log(LOG_DEBUG, "OSPNext: OSPOUTTOKEN size '%d'\n", strlen(result.token));
+ ast_log(LOG_DEBUG, "OSPNext: OSPOUTTOKEN size '%zd'\n", strlen(result.token));
if (!ast_strlen_zero(result.token)) {
snprintf(buffer, sizeof(buffer), "P-OSP-Auth-Token: %s", result.token);
pbx_builtin_setvar_helper(chan, "_SIPADDHEADER", buffer);
- ast_log(LOG_DEBUG, "OSPNext: SIPADDHEADER size '%d'\n", strlen(buffer));
+ ast_log(LOG_DEBUG, "OSPNext: SIPADDHEADER size '%zd'\n", strlen(buffer));
}
snprintf(buffer, sizeof(buffer), "%d", result.numresults);
pbx_builtin_setvar_helper(chan, "OSPRESULTS", buffer);
Modified: trunk/codecs/lpc10/lpc10.h
URL: http://svn.digium.com/view/asterisk/trunk/codecs/lpc10/lpc10.h?rev=33398&r1=33397&r2=33398&view=diff
==============================================================================
--- trunk/codecs/lpc10/lpc10.h (original)
+++ trunk/codecs/lpc10/lpc10.h Fri Jun 9 18:13:52 2006
@@ -30,6 +30,8 @@
#ifndef __LPC10_H__
#define __LPC10_H__
+
+#define P_R_O_T_O_T_Y_P_E_S
#define LPC10_SAMPLES_PER_FRAME 180
#define LPC10_BITS_IN_COMPRESSED_FRAME 54
Modified: trunk/codecs/lpc10/lpcini.c
URL: http://svn.digium.com/view/asterisk/trunk/codecs/lpc10/lpcini.c?rev=33398&r1=33397&r2=33398&view=diff
==============================================================================
--- trunk/codecs/lpc10/lpcini.c (original)
+++ trunk/codecs/lpc10/lpcini.c Fri Jun 9 18:13:52 2006
@@ -28,6 +28,14 @@
*
*/
+
+/* -- translated by f2c (version 19951025).
+ You must link the resulting object file with the libraries:
+ -lf2c -lm (in that order)
+*/
+
+#include <stdlib.h>
+#include "f2c.h"
#ifdef P_R_O_T_O_T_Y_P_E_S
extern int lpcini_(void);
@@ -35,14 +43,6 @@
/*:ref: initlpcenc_ 14 0 */
/*:ref: initlpcdec_ 14 0 */
#endif
-
-/* -- translated by f2c (version 19951025).
- You must link the resulting object file with the libraries:
- -lf2c -lm (in that order)
-*/
-
-#include <stdlib.h>
-#include "f2c.h"
/* Common Block Declarations */
More information about the asterisk-commits
mailing list