dir.c: make dir_add_name() and dir_add_ignored() static