The driver name is no longer const, it's always allocated dynamically
one way or another. Drop const from dri_screen_create_dri2
driver_name argument to avoid warning.
Signed-off-by: Kristian Høgsberg <krh@bitplanet.net>
}
static int
-dri_screen_create_dri2(struct gbm_dri_device *dri,
- const char *driver_name)
+dri_screen_create_dri2(struct gbm_dri_device *dri, char *driver_name)
{
const __DRIextension **extensions;
int ret = 0;
static int
dri_screen_create(struct gbm_dri_device *dri)
{
- const char *driver_name;
+ char *driver_name;
driver_name = loader_get_driver_for_fd(dri->base.base.fd, 0);
if (!driver_name)
static int
dri_screen_create_sw(struct gbm_dri_device *dri)
{
- const char *driver_name;
+ char *driver_name;
int ret;
driver_name = strdup("kms_swrast");