nouveau: fix double-const qualifier
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Jan 2016 16:29:09 +0000 (11:29 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Sun, 3 Jan 2016 16:32:15 +0000 (11:32 -0500)
Reported by Tom^ on IRC. The original intent was to mark the pointer
constant as well as the data being pointed to, so move the *.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/drivers/dri/nouveau/nouveau_driver.c
src/mesa/drivers/dri/nouveau/nouveau_driver.h

index 7f31b28..998e751 100644 (file)
@@ -35,7 +35,7 @@
 
 #include "drivers/common/meta.h"
 
-const char const *nouveau_vendor_string = "Nouveau";
+const char * const nouveau_vendor_string = "Nouveau";
 
 const char *
 nouveau_get_renderer_string(unsigned chipset)
index a4273a5..237e956 100644 (file)
@@ -69,7 +69,7 @@ struct nouveau_driver {
 #define nouveau_error(format, ...) \
        fprintf(stderr, "%s: " format, __func__, ## __VA_ARGS__)
 
-extern const char const *nouveau_vendor_string;
+extern const char * const nouveau_vendor_string;
 
 const char *
 nouveau_get_renderer_string(unsigned chipset);