src: cksum: small fixes