Clean up resolve.c.