[svn-commits] rmudgett: branch rmudgett/http_persistent r417792 - /team/rmudgett/http_persi...

SVN commits to the Digium repositories svn-commits at lists.digium.com
Wed Jul 2 19:28:25 CDT 2014


Author: rmudgett
Date: Wed Jul  2 19:28:20 2014
New Revision: 417792

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=417792
Log:
Use %zu for sizeof parameters.

Modified:
    team/rmudgett/http_persistent/main/http.c

Modified: team/rmudgett/http_persistent/main/http.c
URL: http://svnview.digium.com/svn/asterisk/team/rmudgett/http_persistent/main/http.c?view=diff&rev=417792&r1=417791&r2=417792
==============================================================================
--- team/rmudgett/http_persistent/main/http.c (original)
+++ team/rmudgett/http_persistent/main/http.c Wed Jul  2 19:28:20 2014
@@ -915,8 +915,8 @@
 	while (sizeof(buf) < length) {
 		res = fread(buf, sizeof(buf), 1, ser->f);
 		if (res < 1) {
-			ast_log(LOG_WARNING, "Short HTTP request %s (Wanted %d of remaining %d)\n",
-				what_getting, (int) sizeof(buf), length);
+			ast_log(LOG_WARNING, "Short HTTP request %s (Wanted %zu of remaining %d)\n",
+				what_getting, sizeof(buf), length);
 			return -1;
 		}
 		length -= sizeof(buf);
@@ -1030,8 +1030,8 @@
 	/* Stay in fread until get the expected CRLF or timeout. */
 	res = fread(chunk_sync, sizeof(chunk_sync), 1, ser->f);
 	if (res < 1) {
-		ast_log(LOG_WARNING, "Short HTTP chunk sync read (Wanted %d)\n",
-			(int) sizeof(chunk_sync));
+		ast_log(LOG_WARNING, "Short HTTP chunk sync read (Wanted %zu)\n",
+			sizeof(chunk_sync));
 		return -1;
 	}
 	if (chunk_sync[0] != 0x0D || chunk_sync[1] != 0x0A) {




More information about the svn-commits mailing list