Eliminate the unnecessary const cast.
diff --git a/lib/bcc/Compiler.h b/lib/bcc/Compiler.h
index 2510aad..5bb04c2 100644
--- a/lib/bcc/Compiler.h
+++ b/lib/bcc/Compiler.h
@@ -161,8 +161,8 @@
     int compile();
 
     // interface for bccGetScriptInfoLog()
-    char *getErrorMessage() {
-      return const_cast<char*>(mError.c_str());
+    char const *getErrorMessage() {
+      return mError.c_str();
     }
 
     // interface for bccGetScriptLabel()
diff --git a/lib/bcc/bcc.cpp b/lib/bcc/bcc.cpp
index 10a9439..03a9306 100644
--- a/lib/bcc/bcc.cpp
+++ b/lib/bcc/bcc.cpp
@@ -103,7 +103,7 @@
                                     BCCsizei maxLength,
                                     BCCsizei *length,
                                     BCCchar *infoLog) {
-  char *message = script->compiler.getErrorMessage();
+  char const *message = script->compiler.getErrorMessage();
   int messageLength = strlen(message) + 1;
   if (length)
     *length = messageLength;