[asterisk-commits] trunk r9548 - in /trunk/funcs: func_base64.c
func_env.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Sat Feb 11 09:13:05 MST 2006
Author: tilghman
Date: Sat Feb 11 10:13:03 2006
New Revision: 9548
URL: http://svn.digium.com/view/asterisk?rev=9548&view=rev
Log:
Fix compile time warnings
Modified:
trunk/funcs/func_base64.c
trunk/funcs/func_env.c
Modified: trunk/funcs/func_base64.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_base64.c?rev=9548&r1=9547&r2=9548&view=diff
==============================================================================
--- trunk/funcs/func_base64.c (original)
+++ trunk/funcs/func_base64.c Sat Feb 11 10:13:03 2006
@@ -46,7 +46,7 @@
}
ast_log(LOG_DEBUG, "data=%s\n",data);
- res = ast_base64encode(buf, data, strlen(data), len);
+ res = ast_base64encode(buf, (unsigned char *)data, strlen(data), len);
ast_log(LOG_DEBUG, "res=%d\n", res);
return buf;
}
@@ -59,7 +59,7 @@
}
ast_log(LOG_DEBUG, "data=%s\n", data);
- ast_base64decode(buf, data, len);
+ ast_base64decode((unsigned char *)buf, data, len);
return buf;
}
Modified: trunk/funcs/func_env.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_env.c?rev=9548&r1=9547&r2=9548&view=diff
==============================================================================
--- trunk/funcs/func_env.c (original)
+++ trunk/funcs/func_env.c Sat Feb 11 10:13:03 2006
@@ -20,6 +20,7 @@
*
*/
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
More information about the asterisk-commits
mailing list