fix signed/unsigned warnings in http.c

This commit is contained in:
Nick Mathewson 2010-11-01 14:16:39 -04:00
parent f8095d64e2
commit 74a91e5aaf

4
http.c
View File

@ -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) {