Update manager.c

changed some function interface