From: Nick Mathewson Date: Mon, 1 Nov 2010 18:16:39 +0000 (-0400) Subject: fix signed/unsigned warnings in http.c X-Git-Tag: release-2.0.9-rc~37^6~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=74a91e5aafcb62f9518615dbc1021dfde113e001;p=libevent fix signed/unsigned warnings in http.c --- diff --git a/http.c b/http.c index 5222aeff..f13c22e0 100644 --- a/http.c +++ b/http.c @@ -240,7 +240,7 @@ html_replace(char ch, char *buf) char * evhttp_htmlescape(const char *html) { - int i; + size_t i; size_t new_size = 0, old_size = strlen(html); char *escaped_html, *p; char scratch_space[2]; @@ -250,7 +250,7 @@ evhttp_htmlescape(const char *html) p = escaped_html = mm_malloc(new_size + 1); if (escaped_html == NULL) { - event_warn("%s: malloc(%d)", __func__, new_size + 1); + event_warn("%s: malloc(%ld)", __func__, (long)(new_size + 1)); return (NULL); } for (i = 0; i < old_size; ++i) {