OSDN Git Service

wgl: Add const qualifier to global constant data.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 9 Apr 2009 09:54:00 +0000 (10:54 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Thu, 9 Apr 2009 14:22:15 +0000 (15:22 +0100)
src/gallium/state_trackers/wgl/shared/stw_arbpixelformat.c
src/gallium/state_trackers/wgl/shared/stw_getprocaddress.c

index f563635..ead2c8a 100644 (file)
@@ -285,7 +285,7 @@ struct attrib_match_info
    BOOL exact;
 };
 
-static struct attrib_match_info attrib_match[] = {
+static const struct attrib_match_info attrib_match[] = {
 
    /* WGL_ARB_pixel_format */
    { WGL_DRAW_TO_WINDOW_ARB,      0, TRUE },
@@ -338,7 +338,7 @@ score_pixelformats(
    int expected_value )
 {
    uint i;
-   struct attrib_match_info *ami = NULL;
+   const struct attrib_match_info *ami = NULL;
    uint index;
 
    /* Find out if a given attribute should be considered for score calculation.
index ac2d6fc..f15b950 100644 (file)
@@ -40,7 +40,7 @@ struct extension_entry
 
 #define EXTENTRY(P) { #P, (PROC) P }
 
-static struct extension_entry extension_entries[] = {
+static const struct extension_entry extension_entries[] = {
 
    /* WGL_ARB_extensions_string */
    EXTENTRY( wglGetExtensionsStringARB ),
@@ -57,9 +57,9 @@ PROC
 stw_get_proc_address(
    LPCSTR lpszProc )
 {
-   struct extension_entry *entry;
+   const struct extension_entry *entry;
 
-   PROC p = (PROC) _glapi_get_proc_address( (const char *) lpszProc );
+   PROC p = (PROC) _glapi_get_proc_address( lpszProc );
    if (p)
       return p;