[trunk] continue work on getting API to use off_t instead of long toward LFS support in JPIP (manfbox_manager)
This commit is contained in:
parent
45d11c53f0
commit
6bd41e47ac
|
@ -47,14 +47,14 @@ manfbox_param_t * gene_manfbox( box_param_t *box)
|
||||||
manfbox_param_t *manf; /* manifest parameters */
|
manfbox_param_t *manf; /* manifest parameters */
|
||||||
boxheader_param_t *bh; /* current box pointer */
|
boxheader_param_t *bh; /* current box pointer */
|
||||||
boxheader_param_t *last; /* last boxheader pointer of the list */
|
boxheader_param_t *last; /* last boxheader pointer of the list */
|
||||||
Byte8_t pos; /* current position in manf_box contents; */
|
OPJ_OFF_T pos; /* current position in manf_box contents; */
|
||||||
|
|
||||||
manf = ( manfbox_param_t *)malloc( sizeof( manfbox_param_t));
|
manf = ( manfbox_param_t *)malloc( sizeof( manfbox_param_t));
|
||||||
|
|
||||||
pos = 0;
|
pos = 0;
|
||||||
manf->first = last = NULL;
|
manf->first = last = NULL;
|
||||||
|
|
||||||
while( pos < get_DBoxlen( box)){
|
while( (OPJ_SIZE_T)pos < get_DBoxlen( box)){
|
||||||
|
|
||||||
bh = gene_childboxheader( box, pos);
|
bh = gene_childboxheader( box, pos);
|
||||||
pos += bh->headlen;
|
pos += bh->headlen;
|
||||||
|
|
Loading…
Reference in New Issue