X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fhtml-parse.c;h=19fbd3cfec8464660cbd7ee57ce79dfbca8ccb35;hp=4a0a525771a97d173ee10bd713741e2c5f7a11f4;hb=908d7a4bcee5adb7d4768499282cc83075d0332e;hpb=277e840a0f8e3ec8800cfe7407fe3c16000bc622 diff --git a/src/html-parse.c b/src/html-parse.c index 4a0a5257..19fbd3cf 100644 --- a/src/html-parse.c +++ b/src/html-parse.c @@ -241,7 +241,7 @@ struct pool { if (ga_newsize != (sizevar)) \ { \ if (resized) \ - basevar = (type *)xrealloc (basevar, ga_newsize * sizeof (type)); \ + basevar = xrealloc (basevar, ga_newsize * sizeof (type)); \ else \ { \ void *ga_new = xmalloc (ga_newsize * sizeof (type)); \ @@ -1051,7 +1051,7 @@ test_mapper (struct taginfo *taginfo, void *arg) int main () { int size = 256; - char *x = (char *)xmalloc (size); + char *x = xmalloc (size); int length = 0; int read_count; int tag_counter = 0; @@ -1060,7 +1060,7 @@ int main () { length += read_count; size <<= 1; - x = (char *)xrealloc (x, size); + x = xrealloc (x, size); } map_html_tags (x, length, test_mapper, &tag_counter, 0, NULL, NULL);