From: Konstantin Kharlamov Date: Fri, 29 Dec 2017 05:32:30 +0000 (+0300) Subject: st/glx: constify some variables X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b674a1d3b9790fc0e118c0dbcc0b39767a313361;p=mesa.git st/glx: constify some variables Just a nice hint for both peoples and compilers. Signed-off-by: Konstantin Kharlamov Signed-off-by: Marek Olšák --- diff --git a/src/gallium/state_trackers/glx/xlib/glx_getproc.c b/src/gallium/state_trackers/glx/xlib/glx_getproc.c index 58b476341db..6b94f2c1960 100644 --- a/src/gallium/state_trackers/glx/xlib/glx_getproc.c +++ b/src/gallium/state_trackers/glx/xlib/glx_getproc.c @@ -43,7 +43,7 @@ struct name_address_pair { }; -static struct name_address_pair GLX_functions[] = { +static const struct name_address_pair GLX_functions[] = { /*** GLX_VERSION_1_0 ***/ { "glXChooseVisual", (__GLXextFuncPtr) glXChooseVisual }, { "glXCopyContext", (__GLXextFuncPtr) glXCopyContext },