The close_all() function was missing its "void" prototype.