-macho_next_load_command(const struct mach_header_64 *mh, const struct mach_header *mh32, size_t size, const void *lc) {
+macho_next_load_command(const struct mach_header_64 *mh, const struct mach_header *mh32, const void *lc) {
-macho_find_load_command(const struct mach_header_64 *mh, const struct mach_header *mh32, size_t size,
- uint32_t command, const void *lc) {
+macho_find_load_command(const struct mach_header_64 *mh, const struct mach_header *mh32, uint32_t command, const void *lc) {
- loadcmd = macho_next_load_command(mh, mh32, size, loadcmd);
+ loadcmd = macho_next_load_command(mh, mh32, loadcmd);
// Iterate through each index searching for the best code directory.
CS_CodeDirectory *best_cd = NULL;
unsigned best_cd_rank = 0;
// Iterate through each index searching for the best code directory.
CS_CodeDirectory *best_cd = NULL;
unsigned best_cd_rank = 0;
uint32_t count = be32toh(sb->count);
for (size_t i = 0; i < count; i++) {
CS_BlobIndex *index = &sb->index[i];
uint32_t count = be32toh(sb->count);
for (size_t i = 0; i < count; i++) {
CS_BlobIndex *index = &sb->index[i];
compute_cdhash_macho(const struct mach_header_64 *mh, const struct mach_header *mh32, size_t size, struct hashes *cdhash) {
// Find the code signature command.
const struct linkedit_data_command *cs_cmd =
compute_cdhash_macho(const struct mach_header_64 *mh, const struct mach_header *mh32, size_t size, struct hashes *cdhash) {
// Find the code signature command.
const struct linkedit_data_command *cs_cmd =
- macho_find_load_command(mh, mh32, size, LC_CODE_SIGNATURE, NULL);
+ macho_find_load_command(mh, mh32, LC_CODE_SIGNATURE, NULL);