Corrected calls of functions iso_lsb(), iso_msb(), iso_bb() which used
integer types other than uint32_t.
This commit is contained in:
parent
e4cf93665a
commit
4978424328
@ -343,7 +343,7 @@ void write_one_dir_record(Ecma119Image *t, Ecma119Node *node, int file_id,
|
|||||||
iso_datetime_7(rec->recording_time, t->now, t->always_gmt);
|
iso_datetime_7(rec->recording_time, t->now, t->always_gmt);
|
||||||
}
|
}
|
||||||
rec->flags[0] = ((node->type == ECMA119_DIR) ? 2 : 0) | (multi_extend ? 0x80 : 0);
|
rec->flags[0] = ((node->type == ECMA119_DIR) ? 2 : 0) | (multi_extend ? 0x80 : 0);
|
||||||
iso_bb(rec->vol_seq_number, 1, 2);
|
iso_bb(rec->vol_seq_number, (uint32_t) 1, 2);
|
||||||
rec->len_fi[0] = len_fi;
|
rec->len_fi[0] = len_fi;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -421,9 +421,9 @@ int ecma119_writer_write_vol_desc(IsoImageWriter *writer)
|
|||||||
strncpy_pad((char*)vol.system_id, system_id, 32);
|
strncpy_pad((char*)vol.system_id, system_id, 32);
|
||||||
strncpy_pad((char*)vol.volume_id, vol_id, 32);
|
strncpy_pad((char*)vol.volume_id, vol_id, 32);
|
||||||
iso_bb(vol.vol_space_size, t->vol_space_size, 4);
|
iso_bb(vol.vol_space_size, t->vol_space_size, 4);
|
||||||
iso_bb(vol.vol_set_size, 1, 2);
|
iso_bb(vol.vol_set_size, (uint32_t) 1, 2);
|
||||||
iso_bb(vol.vol_seq_number, 1, 2);
|
iso_bb(vol.vol_seq_number, (uint32_t) 1, 2);
|
||||||
iso_bb(vol.block_size, BLOCK_SIZE, 2);
|
iso_bb(vol.block_size, (uint32_t) BLOCK_SIZE, 2);
|
||||||
iso_bb(vol.path_table_size, t->path_table_size, 4);
|
iso_bb(vol.path_table_size, t->path_table_size, 4);
|
||||||
iso_lsb(vol.l_path_table_pos, t->l_path_table_pos, 4);
|
iso_lsb(vol.l_path_table_pos, t->l_path_table_pos, 4);
|
||||||
iso_msb(vol.m_path_table_pos, t->m_path_table_pos, 4);
|
iso_msb(vol.m_path_table_pos, t->m_path_table_pos, 4);
|
||||||
|
@ -712,7 +712,7 @@ void write_one_dir_record(Ecma119Image *t, Iso1999Node *node, int file_id,
|
|||||||
iso_bb(rec->length, len, 4);
|
iso_bb(rec->length, len, 4);
|
||||||
iso_datetime_7(rec->recording_time, t->now, t->always_gmt);
|
iso_datetime_7(rec->recording_time, t->now, t->always_gmt);
|
||||||
rec->flags[0] = ((node->type == ISO1999_DIR) ? 2 : 0) | (multi_extend ? 0x80 : 0);
|
rec->flags[0] = ((node->type == ISO1999_DIR) ? 2 : 0) | (multi_extend ? 0x80 : 0);
|
||||||
iso_bb(rec->vol_seq_number, 1, 2);
|
iso_bb(rec->vol_seq_number, (uint32_t) 1, 2);
|
||||||
rec->len_fi[0] = len_fi;
|
rec->len_fi[0] = len_fi;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -763,9 +763,9 @@ int iso1999_writer_write_vol_desc(IsoImageWriter *writer)
|
|||||||
strncpy_pad((char*)vol.volume_id, vol_id, 32);
|
strncpy_pad((char*)vol.volume_id, vol_id, 32);
|
||||||
|
|
||||||
iso_bb(vol.vol_space_size, t->vol_space_size, 4);
|
iso_bb(vol.vol_space_size, t->vol_space_size, 4);
|
||||||
iso_bb(vol.vol_set_size, 1, 2);
|
iso_bb(vol.vol_set_size, (uint32_t) 1, 2);
|
||||||
iso_bb(vol.vol_seq_number, 1, 2);
|
iso_bb(vol.vol_seq_number, (uint32_t) 1, 2);
|
||||||
iso_bb(vol.block_size, BLOCK_SIZE, 2);
|
iso_bb(vol.block_size, (uint32_t) BLOCK_SIZE, 2);
|
||||||
iso_bb(vol.path_table_size, t->iso1999_path_table_size, 4);
|
iso_bb(vol.path_table_size, t->iso1999_path_table_size, 4);
|
||||||
iso_lsb(vol.l_path_table_pos, t->iso1999_l_path_table_pos, 4);
|
iso_lsb(vol.l_path_table_pos, t->iso1999_l_path_table_pos, 4);
|
||||||
iso_msb(vol.m_path_table_pos, t->iso1999_m_path_table_pos, 4);
|
iso_msb(vol.m_path_table_pos, t->iso1999_m_path_table_pos, 4);
|
||||||
|
@ -758,7 +758,7 @@ void write_one_dir_record(Ecma119Image *t, JolietNode *node, int file_id,
|
|||||||
iso_bb(rec->length, len, 4);
|
iso_bb(rec->length, len, 4);
|
||||||
iso_datetime_7(rec->recording_time, t->now, t->always_gmt);
|
iso_datetime_7(rec->recording_time, t->now, t->always_gmt);
|
||||||
rec->flags[0] = ((node->type == JOLIET_DIR) ? 2 : 0) | (multi_extend ? 0x80 : 0);
|
rec->flags[0] = ((node->type == JOLIET_DIR) ? 2 : 0) | (multi_extend ? 0x80 : 0);
|
||||||
iso_bb(rec->vol_seq_number, 1, 2);
|
iso_bb(rec->vol_seq_number, (uint32_t) 1, 2);
|
||||||
rec->len_fi[0] = len_fi;
|
rec->len_fi[0] = len_fi;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -833,9 +833,9 @@ int joliet_writer_write_vol_desc(IsoImageWriter *writer)
|
|||||||
memcpy(vol.esc_sequences, "%/E", 3);
|
memcpy(vol.esc_sequences, "%/E", 3);
|
||||||
|
|
||||||
iso_bb(vol.vol_space_size, t->vol_space_size, 4);
|
iso_bb(vol.vol_space_size, t->vol_space_size, 4);
|
||||||
iso_bb(vol.vol_set_size, 1, 2);
|
iso_bb(vol.vol_set_size, (uint32_t) 1, 2);
|
||||||
iso_bb(vol.vol_seq_number, 1, 2);
|
iso_bb(vol.vol_seq_number, (uint32_t) 1, 2);
|
||||||
iso_bb(vol.block_size, BLOCK_SIZE, 2);
|
iso_bb(vol.block_size, (uint32_t) BLOCK_SIZE, 2);
|
||||||
iso_bb(vol.path_table_size, t->joliet_path_table_size, 4);
|
iso_bb(vol.path_table_size, t->joliet_path_table_size, 4);
|
||||||
iso_lsb(vol.l_path_table_pos, t->joliet_l_path_table_pos, 4);
|
iso_lsb(vol.l_path_table_pos, t->joliet_l_path_table_pos, 4);
|
||||||
iso_msb(vol.m_path_table_pos, t->joliet_m_path_table_pos, 4);
|
iso_msb(vol.m_path_table_pos, t->joliet_m_path_table_pos, 4);
|
||||||
|
@ -109,12 +109,12 @@ int rrip_add_PX(Ecma119Image *t, Ecma119Node *n, struct susp_info *susp)
|
|||||||
PX[2] = 36;
|
PX[2] = 36;
|
||||||
}
|
}
|
||||||
PX[3] = 1;
|
PX[3] = 1;
|
||||||
iso_bb(&PX[4], px_get_mode(t, n), 4);
|
iso_bb(&PX[4], (uint32_t) px_get_mode(t, n), 4);
|
||||||
iso_bb(&PX[12], n->nlink, 4);
|
iso_bb(&PX[12], (uint32_t) n->nlink, 4);
|
||||||
iso_bb(&PX[20], px_get_uid(t, n), 4);
|
iso_bb(&PX[20], (uint32_t) px_get_uid(t, n), 4);
|
||||||
iso_bb(&PX[28], px_get_gid(t, n), 4);
|
iso_bb(&PX[28], (uint32_t) px_get_gid(t, n), 4);
|
||||||
if (t->rrip_1_10_px_ino || !t->rrip_version_1_10) {
|
if (t->rrip_1_10_px_ino || !t->rrip_version_1_10) {
|
||||||
iso_bb(&PX[36], n->ino, 4);
|
iso_bb(&PX[36], (uint32_t) n->ino, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
return susp_append(t, susp, PX);
|
return susp_append(t, susp, PX);
|
||||||
@ -243,10 +243,10 @@ int rrip_add_PN(Ecma119Image *t, Ecma119Node *n, struct susp_info *susp)
|
|||||||
*/
|
*/
|
||||||
if (sizeof(node->dev) > 4) {
|
if (sizeof(node->dev) > 4) {
|
||||||
high_shift = 32;
|
high_shift = 32;
|
||||||
iso_bb(&PN[4], node->dev >> high_shift, 4);
|
iso_bb(&PN[4], (uint32_t) (node->dev >> high_shift), 4);
|
||||||
} else
|
} else
|
||||||
iso_bb(&PN[4], 0, 4);
|
iso_bb(&PN[4], 0, 4);
|
||||||
iso_bb(&PN[12], node->dev & 0xffffffff, 4);
|
iso_bb(&PN[12], (uint32_t) (node->dev & 0xffffffff), 4);
|
||||||
return susp_append(t, susp, PN);
|
return susp_append(t, susp, PN);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -695,7 +695,7 @@ int susp_add_CE(Ecma119Image *t, size_t ce_len, struct susp_info *susp)
|
|||||||
CE[3] = 1;
|
CE[3] = 1;
|
||||||
iso_bb(&CE[4], susp->ce_block, 4);
|
iso_bb(&CE[4], susp->ce_block, 4);
|
||||||
iso_bb(&CE[12], susp->ce_len, 4);
|
iso_bb(&CE[12], susp->ce_len, 4);
|
||||||
iso_bb(&CE[20], ce_len, 4);
|
iso_bb(&CE[20], (uint32_t) ce_len, 4);
|
||||||
|
|
||||||
return susp_append(t, susp, CE);
|
return susp_append(t, susp, CE);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user