Add const to variables and parameters in et_core.c