[Mesa-dev] [PATCH 37/38] gbm/dri: constify remaining __DRI*Extensions

Ilia Mirkin imirkin at alum.mit.edu
Wed Feb 12 19:08:00 PST 2014


On Wed, Feb 12, 2014 at 8:18 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> Already threaded as such, but stored as non-const.

I think "treated" is the preferred spelling...

>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/gbm/backends/dri/gbm_driint.h | 10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
>
> diff --git a/src/gbm/backends/dri/gbm_driint.h b/src/gbm/backends/dri/gbm_driint.h
> index fdf694d..36a6d34 100644
> --- a/src/gbm/backends/dri/gbm_driint.h
> +++ b/src/gbm/backends/dri/gbm_driint.h
> @@ -44,11 +44,11 @@ struct gbm_dri_device {
>
>     __DRIscreen *screen;
>
> -   __DRIcoreExtension   *core;
> -   __DRIdri2Extension   *dri2;
> -   __DRIimageExtension  *image;
> -   __DRI2flushExtension *flush;
> -   __DRIdri2LoaderExtension *loader;
> +   const __DRIcoreExtension   *core;
> +   const __DRIdri2Extension   *dri2;
> +   const __DRIimageExtension  *image;
> +   const __DRI2flushExtension *flush;
> +   const __DRIdri2LoaderExtension *loader;
>
>     const __DRIconfig   **driver_configs;
>     const __DRIextension *extensions[5];
> --
> 1.8.5.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list