aboutsummaryrefslogtreecommitdiff
path: root/engines/glk/jacl/errors.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2019-10-05 20:43:03 -0700
committerPaul Gilbert2019-10-07 19:01:52 -0700
commit66468fa2fe18daff4d8dc664886b5e23f9436672 (patch)
treee13cc603885e40efc8d08493b4b179ff82883a76 /engines/glk/jacl/errors.cpp
parentaf4f390ab26c2a181b3dc69dfd93e8fcf5bc30a0 (diff)
downloadscummvm-rg350-66468fa2fe18daff4d8dc664886b5e23f9436672.tar.gz
scummvm-rg350-66468fa2fe18daff4d8dc664886b5e23f9436672.tar.bz2
scummvm-rg350-66468fa2fe18daff4d8dc664886b5e23f9436672.zip
GLK: JACL: gcc compilation fixes
Diffstat (limited to 'engines/glk/jacl/errors.cpp')
-rw-r--r--engines/glk/jacl/errors.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/engines/glk/jacl/errors.cpp b/engines/glk/jacl/errors.cpp
index fc791add48..4956a1dfd5 100644
--- a/engines/glk/jacl/errors.cpp
+++ b/engines/glk/jacl/errors.cpp
@@ -29,7 +29,7 @@ namespace Glk {
namespace JACL {
extern struct function_type *executing_function;
-extern char *word[];
+extern const char *word[];
extern char error_buffer[];
@@ -44,7 +44,7 @@ void notintrun() {
log_error(error_buffer, PLUS_STDERR);
}
-void unkfunrun(char *name) {
+void unkfunrun(const char *name) {
sprintf(error_buffer, UNKNOWN_FUNCTION_RUN, name);
log_error(error_buffer, PLUS_STDOUT);
}
@@ -130,22 +130,22 @@ void badplrrun(int value) {
log_error(error_buffer, PLUS_STDOUT);
}
-void badptrrun(char *name, int value) {
+void badptrrun(const char *name, int value) {
sprintf(error_buffer, BAD_POINTER, executing_function->name, name, value);
log_error(error_buffer, PLUS_STDOUT);
}
-void unkvarrun(char *variable) {
+void unkvarrun(const char *variable) {
sprintf(error_buffer, UNDEFINED_CONTAINER_RUN, executing_function->name, arg_text_of(variable));
log_error(error_buffer, PLUS_STDOUT);
}
-void unkstrrun(char *variable) {
+void unkstrrun(const char *variable) {
sprintf(error_buffer, UNDEFINED_STRING_RUN, executing_function->name, variable);
log_error(error_buffer, PLUS_STDOUT);
}
-void unkscorun(char *scope) {
+void unkscorun(const char *scope) {
sprintf(error_buffer, UNKNOWN_SCOPE_RUN, executing_function->name, scope);
log_error(error_buffer, PLUS_STDOUT);
}