summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/BLua.h4
-rw-r--r--lib/BLua.cc2
-rw-r--r--lib/generic.cc2
3 files changed, 4 insertions, 4 deletions
diff --git a/include/BLua.h b/include/BLua.h
index 6cfbd2b..6fadeaf 100644
--- a/include/BLua.h
+++ b/include/BLua.h
@@ -84,7 +84,7 @@ class Lua : public Base {
void push(lua_Number);
void push(const String &);
void push(bool);
- void push(char *, int size = -1);
+ void push(const char *, int size = -1);
void push(void *);
void push(lua_CFunction, int = 0);
void pop(int = 1);
@@ -216,7 +216,7 @@ enum Lua_types_t {
struct lua_functypes_t {
int number;
- char * name;
+ const char * name;
int minargs, maxargs;
int argtypes[MAXARGS];
};
diff --git a/lib/BLua.cc b/lib/BLua.cc
index 5ff970e..9bd7828 100644
--- a/lib/BLua.cc
+++ b/lib/BLua.cc
@@ -693,7 +693,7 @@ void Lua::push(bool b) {
lua_pushboolean(L, b);
}
-void Lua::push(char * s, int size) {
+void Lua::push(const char * s, int size) {
if (size < 0) {
lua_pushstring(L, s);
} else {
diff --git a/lib/generic.cc b/lib/generic.cc
index 689a83c..8c2a66f 100644
--- a/lib/generic.cc
+++ b/lib/generic.cc
@@ -28,7 +28,7 @@
#endif
char verbosity = M_ERROR;
-static char * heads[] = {NULL, "EE", "--", "WW", "II"};
+static const char * heads[] = {NULL, "EE", "--", "WW", "II"};
printer_t * printer = 0;
locker_t * locker = 0;