source tidy

This commit is contained in:
dborth 2010-07-22 07:38:48 +00:00
parent bc45121dd8
commit 0ec53414e2

View File

@ -51,12 +51,9 @@ void UpdateCheck()
if(!updateChecked && networkInit && (isMounted[DEVICE_SD] || isMounted[DEVICE_USB])) if(!updateChecked && networkInit && (isMounted[DEVICE_SD] || isMounted[DEVICE_USB]))
{ {
updateChecked = true; updateChecked = true;
static char url[128]; u8 tmpbuffer[256];
snprintf(url, 128, "http://fceugc.googlecode.com/svn/trunk/update.xml");
u8 * tmpbuffer = (u8 *)memalign(32,32768);
memset(tmpbuffer, 0, 32768);
if (http_request(url, NULL, tmpbuffer, 32768, SILENT) > 0) if (http_request("http://fceugc.googlecode.com/svn/trunk/update.xml", NULL, tmpbuffer, 256, SILENT) > 0)
{ {
mxml_node_t *xml; mxml_node_t *xml;
mxml_node_t *item; mxml_node_t *item;
@ -104,7 +101,6 @@ void UpdateCheck()
mxmlDelete(xml); mxmlDelete(xml);
} }
} }
free(tmpbuffer);
} }
} }