From 9d9b0146fa9919db9e3c3b9f2f8950a7fd52761a Mon Sep 17 00:00:00 2001 From: Alcaro Date: Sun, 21 Dec 2014 01:12:30 +0100 Subject: [PATCH] Fix some C++ errors. --- http_intf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/http_intf.c b/http_intf.c index dc32d2380a..9c175eadb7 100644 --- a/http_intf.c +++ b/http_intf.c @@ -1,7 +1,7 @@ #include #include "http_intf.h" -#include "general.h" #include "retroarch_logger.h" +#include "general.h" int http_intf_command(unsigned mode, char *url) { @@ -41,7 +41,7 @@ int http_intf_command(unsigned mode, char *url) /* read stdin into memory */ blocksize=16384; lg=0; - if (!(data=malloc(blocksize))) + if (!(data=(char*)malloc(blocksize))) return 3; while (1) { @@ -55,7 +55,7 @@ int http_intf_command(unsigned mode, char *url) blocksize *= 4; RARCH_LOG("read to date: %9d bytes, reallocating buffer to %9d\n", lg, blocksize); - if (!(data=realloc(data,blocksize))) + if (!(data=(char*)realloc(data,blocksize))) return 4; } }