[client] remove all casts around malloc

The cast is unnecessary in C and should be removed to avoid clutter.
This commit is contained in:
Quantum
2021-08-15 18:55:19 -04:00
committed by Geoffrey McRae
parent fd4a4114e6
commit 81c38e825c
12 changed files with 18 additions and 18 deletions

View File

@@ -25,7 +25,7 @@
void egl_drawTorus(EGL_Model * model, unsigned int pts, float x, float y,
float inner, float outer)
{
GLfloat * v = (GLfloat *)malloc(sizeof(*v) * (pts + 1) * 6);
GLfloat * v = malloc(sizeof(*v) * (pts + 1) * 6);
GLfloat * dst = v;
for(unsigned int i = 0; i <= pts; ++i)
@@ -48,7 +48,7 @@ void egl_drawTorus(EGL_Model * model, unsigned int pts, float x, float y,
void egl_drawTorusArc(EGL_Model * model, unsigned int pts, float x, float y,
float inner, float outer, float s, float e)
{
GLfloat * v = (GLfloat *)malloc(sizeof(*v) * (pts + 1) * 6);
GLfloat * v = malloc(sizeof(*v) * (pts + 1) * 6);
GLfloat * dst = v;
for(unsigned int i = 0; i <= pts; ++i)