Constify pointers and arrays (their value or address) where possible.

While here, fix a bug in the signature of set_time(): 'bit' should be a
pointer because the GETBIT_EOD flag can be set.