glx/tests: explicitly set __DRI2rendererQueryExtension members
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 12 Feb 2014 21:00:02 +0000 (21:00 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 28 Apr 2014 18:13:38 +0000 (19:13 +0100)
While we're here use the typcast'ed name and constify.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glx/tests/query_renderer_implementation_unittest.cpp

index 35b3972d57f58018d46ee7f2181d33e66a5940ef..6ec4c4f803048dcc68da5a9ba1744086af6beb80 100644 (file)
@@ -140,11 +140,11 @@ fake_queryString(__DRIscreen *screen, int attribute, const char **val)
    return -1;
 }
 
-struct __DRI2rendererQueryExtensionRec rendererQueryExt = {
-   { __DRI2_RENDERER_QUERY, 1 },
+static const __DRI2rendererQueryExtension rendererQueryExt = {
+   .base = { __DRI2_RENDERER_QUERY, 1 },
 
-   fake_queryInteger,
-   fake_queryString
+   .queryInteger = fake_queryInteger,
+   .queryString = fake_queryString
 };
 
 void dri2_query_renderer_string_test::SetUp()