fix defination errors and error writing inop in clock.c