From: Wolfgang Bumiller Date: Fri, 11 Jan 2013 22:13:36 +0000 (+0100) Subject: code cleanup: prog_tempstring used to cast const char * parameter to char * due to... X-Git-Tag: before-library~303 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=5bb4e40c72424e0a2b110c01d42201dc09b3294b;p=xonotic%2Fgmqcc.git code cleanup: prog_tempstring used to cast const char * parameter to char * due to the old vector code which is now gone --- diff --git a/exec.c b/exec.c index 5bff85e..82cd3d7 100644 --- 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;