The functions of main.c should be included in main.h, not in funcs.h. This patch adds the main.h file and moves the function prototypes to this file. The not needed "include funcs.h" are removed.