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 7f31b2851e4aafc6aeda86ddac065c86e0b091b6..998e751fc3c722fa5b1e04701b8c7fafc70d907d 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 a4273a554bd229b31ee5c7cd2cb92c8cc0682f7f..237e9563246023a4cee21069fe2800e7312bc0c8 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);