dos2unix Makefile
correctly check misc_register return value.