Lines Matching refs:i
141 int i; in LoadPartitionContents() local
143 for (i = 0; filename[i] != '\0'; ++i) { in LoadPartitionContents()
144 if (filename[i] == ':') { in LoadPartitionContents()
158 for (i = 0; i < pairs; ++i) { in LoadPartitionContents()
160 size[i] = strtol(size_str, NULL, 10); in LoadPartitionContents()
161 if (size[i] == 0) { in LoadPartitionContents()
165 sha1sum[i] = strtok(NULL, ":"); in LoadPartitionContents()
166 index[i] = i; in LoadPartitionContents()
217 for (i = 0; i < pairs; ++i) { in LoadPartitionContents()
221 size_t next = size[index[i]] - file->size; in LoadPartitionContents()
250 if (ParseSha1(sha1sum[index[i]], parsed_sha) != 0) { in LoadPartitionContents()
252 sha1sum[index[i]], filename); in LoadPartitionContents()
262 size[index[i]], sha1sum[index[i]]); in LoadPartitionContents()
280 if (i == pairs) { in LoadPartitionContents()
291 for (i = 0; i < SHA_DIGEST_SIZE; ++i) { in LoadPartitionContents()
292 file->sha1[i] = sha_final[i]; in LoadPartitionContents()
537 int i; in ParseSha1() local
540 for (i = 0; i < SHA_DIGEST_SIZE * 2; ++i, ++ps) { in ParseSha1()
551 if (i % 2 == 0) { in ParseSha1()
567 int i; in FindMatchingPatch() local
569 for (i = 0; i < num_patches; ++i) { in FindMatchingPatch()
570 if (ParseSha1(patch_sha1_str[i], patch_sha1) == 0 && in FindMatchingPatch()
572 return i; in FindMatchingPatch()
678 int i; in print_short_sha1() local
680 for (i = 0; i < 4; ++i) { in print_short_sha1()
681 putchar(hex[(sha1[i]>>4) & 0xf]); in print_short_sha1()
682 putchar(hex[sha1[i] & 0xf]); in print_short_sha1()