Added -Wall flag to project, fixed all warnings.
Added -Wextra, fixed all associated warnings.
Added -pedantic flag, switched to C99 standard
Added many more warning flags, fixed associated warnings. Changed RX to detect size of incoming packet, and allocate buffer size appropriately, rather than allocating 100 bytes on the stack, using FIONREAD.
Added -Wstrict-prototypes flag