Please, when posting problems like this specify the compiler you are using. There is nothing wrong with type (void (*)()) but older versions of PCC (such as the one on 4.2BSD) do not handle them correctly.