[asterisk-dev] iconv() interface ?
Luigi Rizzo
rizzo at icir.org
Fri Jun 29 16:36:36 CDT 2007
At least on FreeBSD, i need this patch to get a clean AST_DEVMODE build.
I know that there might be different version for iconv(), so can
someone let me know if this patch breaks anything on linux ?
Index: funcs/func_iconv.c
===================================================================
--- funcs/func_iconv.c (revision 72740)
+++ funcs/func_iconv.c (working copy)
@@ -82,7 +82,7 @@
return -1;
}
- if (iconv(cd, &args.text, &incount, &buf, &outcount) == (size_t) -1) {
+ if (iconv(cd, (const char **)&args.text, &incount, &buf, &outcount) == (size_t) -1) {
if (errno == E2BIG)
ast_log(LOG_WARNING, "Iconv: output buffer too small.\n");
else if (errno == EILSEQ)
thanks
luigi
More information about the asterisk-dev
mailing list