X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fglx%2Fglxconfig.c;h=555ccf8e62b6c2bfa1452543cf79dd197c58863b;hb=cabd09c9e70f7fcd5cc5059bbc48428f223df838;hp=c3e1d5a568044067816f2d662ec74ac8951f20c8;hpb=2bf95c519e755146704f4942b1703d47d18bfeaa;p=mesa.git diff --git a/src/glx/glxconfig.c b/src/glx/glxconfig.c index c3e1d5a5680..555ccf8e62b 100644 --- a/src/glx/glxconfig.c +++ b/src/glx/glxconfig.c @@ -32,7 +32,6 @@ */ #include -#include "GL/glxint.h" #include #include @@ -213,10 +212,6 @@ glx_config_get(struct glx_config * mode, int attribute, int *value_return) * values from the extension specification. * * \param count Number of structures to allocate. - * \param minimum_size Minimum size of a structure to allocate. This allows - * for differences in the version of the - * \c struct glx_config stucture used in libGL and in a - * DRI-based driver. * \returns A pointer to the first element in a linked list of \c count * stuctures on success, or \c NULL on failure. */ @@ -230,7 +225,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;