Wrong aligned of astrix - should be:
void heca_cmd_err(const char *msg, int *param);