[asterisk-commits] mmichelson: trunk r141425 - /trunk/funcs/func_curl.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Sep 5 17:03:27 CDT 2008


Author: mmichelson
Date: Fri Sep  5 17:03:26 2008
New Revision: 141425

URL: http://svn.digium.com/view/asterisk?view=rev&rev=141425
Log:
Fix func_curl compilation


Modified:
    trunk/funcs/func_curl.c

Modified: trunk/funcs/func_curl.c
URL: http://svn.digium.com/view/asterisk/trunk/funcs/func_curl.c?view=diff&rev=141425&r1=141424&r2=141425
==============================================================================
--- trunk/funcs/func_curl.c (original)
+++ trunk/funcs/func_curl.c Fri Sep  5 17:03:26 2008
@@ -187,7 +187,7 @@
 	if (!parse_curlopt_key(name, &key, &ot)) {
 		if (ot == OT_BOOLEAN) {
 			if ((new = ast_calloc(1, sizeof(*new)))) {
-				new->value = (void *)ast_true(value);
+				new->value = (void *)((long) ast_true(value));
 			}
 		} else if (ot == OT_INTEGER) {
 			long tmp = atol(value);
@@ -349,14 +349,14 @@
 	register int realsize = size * nmemb;
 	struct ast_str **pstr = (struct ast_str **)data;
 
-	ast_debug(3, "Called with data=%p, str=%p, realsize=%d, len=%d, used=%d\n", data, *pstr, realsize, (*pstr)->len, (*pstr)->used);
+	ast_debug(3, "Called with data=%p, str=%p, realsize=%d, len=%zu, used=%zu\n", data, *pstr, realsize, (*pstr)->len, (*pstr)->used);
 
 	if (ast_str_make_space(pstr, (((*pstr)->used + realsize + 1) / 512 + 1) * 512 + 470) == 0) {
 		memcpy(&((*pstr)->str[(*pstr)->used]), ptr, realsize);
 		(*pstr)->used += realsize;
 	}
 
-	ast_debug(3, "Now, len=%d, used=%d\n", (*pstr)->len, (*pstr)->used);
+	ast_debug(3, "Now, len=%zu, used=%zu\n", (*pstr)->len, (*pstr)->used);
 
 	return realsize;
 }




More information about the asterisk-commits mailing list