corrected hms.c, now compiling with Werror Wall