Mesa (master): mesa: don't cast away const

Dylan Noblesmith nobled at kemper.freedesktop.org
Fri Apr 13 14:30:14 UTC 2012


Module: Mesa
Branch: master
Commit: 75fe7d1995cc828e821efddfaee8cbc52e27a52c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=75fe7d1995cc828e821efddfaee8cbc52e27a52c

Author: Dylan Noblesmith <nobled at dreamwidth.org>
Date:   Sun Apr  1 18:55:23 2012 +0000

mesa: don't cast away const

Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/mesa/main/extensions.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 3ce4cd5..5f2c74a 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -940,7 +940,7 @@ _mesa_get_enabled_extension(struct gl_context *ctx, GLuint index)
    n = 0;
    for (i = extension_table; i->name != 0; ++i) {
       if (n == index && base[i->offset]) {
-	 return (GLubyte*) i->name;
+	 return (const GLubyte*) i->name;
       } else if (base[i->offset]) {
 	 ++n;
       }




More information about the mesa-commit mailing list