]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
code cleanup: prog_tempstring used to cast const char * parameter to char * due to...
authorWolfgang Bumiller <blub@speed.at>
Fri, 11 Jan 2013 22:13:36 +0000 (23:13 +0100)
committerWolfgang Bumiller <blub@speed.at>
Fri, 11 Jan 2013 22:13:36 +0000 (23:13 +0100)
exec.c

diff --git a/exec.c b/exec.c
index 5bff85e06a8605e692c58778820096b19cffb8ad..82cd3d7efff1c556e64c957bb93bb1fa92d5e3b3 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -243,13 +243,8 @@ void prog_free_entity(qc_program *prog, qcint e)
     prog->entitypool[e] = false;
 }
 
-qcint prog_tempstring(qc_program *prog, const char *_str)
+qcint prog_tempstring(qc_program *prog, const char *str)
 {
-    /* we don't access it, but the macro-generated functions don't use
-     * const
-     */
-    char *str = (char*)_str;
-
     size_t len = strlen(str);
     size_t at = prog->tempstring_at;