From 078a323e9de85b1e1a2771fe813e2b24dab00e68 Mon Sep 17 00:00:00 2001 From: Lee Salzman Date: Sun, 12 Oct 2008 07:39:10 +0000 Subject: [PATCH] const cleanup git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2976 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/command.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/command.cpp b/source/src/command.cpp index 93ef2a3d..3edb44d9 100644 --- a/source/src/command.cpp +++ b/source/src/command.cpp @@ -297,7 +297,7 @@ char *executeret(const char *p) // all evaluation hap p += strcspn(p, ";\n\0"); cont = *p++!=0; // more statements if this isn't the end of the string - char *c = w[0]; + const char *c = w[0]; if(!*c) continue; // empty statement DELETEA(retval); @@ -309,7 +309,7 @@ char *executeret(const char *p) // all evaluation hap case '=': DELETEA(w[1]); swap(w[0], w[1]); - c = (char *)"alias"; + c = "alias"; break; } }