* remote.c (read_frame): Split readchar/checksum calculation into