X-Git-Url: https://git.libre-soc.org/?p=mesa.git;a=blobdiff_plain;f=src%2Fglx%2Fglxconfig.c;h=0e1643fcd8f6b6fb3d4935b3588203b820b9f14b;hp=c3e1d5a568044067816f2d662ec74ac8951f20c8;hb=7cf50af6f512024331d766832e0cc20a6a4499d7;hpb=2bf95c519e755146704f4942b1703d47d18bfeaa diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c index c3e1d5a5680..0e1643fcd8f 100644 --- a/src/glx/glxconfig.c +++ b/src/glx/glxconfig.c @@ -32,7 +32,6 @@ */ #include -#include "GL/glxint.h" #include #include @@ -230,7 +229,7 @@ glx_config_create_list(unsigned count) next = &base; for (i = 0; i < count; i++) { - *next = (struct glx_config *) malloc(size); + *next = malloc(size); if (*next == NULL) { glx_config_destroy_list(base); base = NULL;