code cleanup: prog_tempstring used to cast const char * parameter to char * due to the old vector code which is now gone

This commit is contained in:
Wolfgang Bumiller 2013-01-11 23:13:36 +01:00
parent 7bab7fc42e
commit 5bb4e40c72

7
exec.c
View file

@ -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;