Mercurial > remote-gamepad
diff source/main.c @ 1:5ba54fc65608
Revert a stupid s/memalign/calloc/ in soc:U initialisation.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Sun, 22 Feb 2015 18:20:59 +0100 |
parents | 4e831ec746e4 |
children | 4c4be527a8d5 |
line wrap: on
line diff
--- a/source/main.c +++ b/source/main.c @@ -92,7 +92,7 @@ struct network_t *networkInit(const char const unsigned SOC_ALIGN = 0x1000; const unsigned SOC_BUFFERSIZE = 0x100000; - SOC_buffer = (u32*)calloc(SOC_ALIGN, SOC_BUFFERSIZE); + SOC_buffer = (u32*)memalign(SOC_ALIGN, SOC_BUFFERSIZE); if (!SOC_buffer) { printf("calloc() failed.\n"); return NULL;