epca.c: static functions and integer as NULL pointer fixes