Forwarded: not-needed
Description: Fix "ISO C++ forbids converting a string constant to ‘char *’" warnings
Author: Anthony Fok <foka@debian.org>
Origin: vendor
Last-Update: 2018-08-17
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/src/graphdev.cpp
+++ b/src/graphdev.cpp
@@ -52,7 +52,7 @@
 struct CharBitMap GraphDev::mAsc = {0};
 struct CharBitMap GraphDev::mDbl = {0};
 
-bool GraphDev::Open(char* drv) {
+bool GraphDev::Open(const char* drv) {
     if (drv == string("auto")) {
         /* auto:fbdev->ggi->vga */
         cerr <<  "trying fbdev driver" << endl;
--- a/src/graphdev.h
+++ b/src/graphdev.h
@@ -42,7 +42,7 @@
 
 class GraphDev {
     public:
-        static bool Open(char* drv = "auto");
+        static bool Open(const char* drv = "auto");
         static bool Open(int xres, int yres, int depth);
         static void Close();
         virtual ~GraphDev() {};
--- a/src/nativeinputserver.h
+++ b/src/nativeinputserver.h
@@ -62,7 +62,7 @@
         bool mAutoSelectUnique;
         static struct Symbol {
             char mKey;
-            char *mpSymbol;
+            const char *mpSymbol;
         }
         mFullSymbolTable[];
         static char mFullCharTable[];
