static void init_th(struct test_header *th, uint32_t header_length, uint32_t offset, uint32_t length) { bzero(th, sizeof(*th)); th->th_magic = htonl(TEST_MAGIC); th->th_header_length = htonl(header_length); th->th_offset = htonl(offset); th->th_length = htonl(length); MD5FileChunk(path, th->th_md5, offset, length); }
char * MD5File(const char *filename, char *buf) { return (MD5FileChunk(filename, buf, 0, 0)); }
char * MD5File(const char *filename, char *buf) { return (MD5FileChunk(filename, buf, (off_t)0, (off_t)0)); }