...and added comms.h to comms.c, otherwise that include is undefined.