| 554 |
|
} |
| 555 |
|
biglob(hp)->nrd -= bi->nrd; /* tell fragment it's free */ |
| 556 |
|
bi->nrd = 0; |
| 557 |
< |
bi->fo = 0; |
| 557 |
> |
bi->fo = 0L; |
| 558 |
|
return(1); |
| 559 |
|
} |
| 560 |
|
|
| 644 |
|
hp->bi[i].fo = nfo; |
| 645 |
|
} else |
| 646 |
|
hp->bi[i].fo = 0L; |
| 647 |
< |
biglob(hp)->nrd += hp->bi[i].nrd = nrays; |
| 647 |
> |
biglob(hp)->nrd += nrays - hp->bi[i].nrd; |
| 648 |
> |
hp->bi[i].nrd = nrays; |
| 649 |
|
markdirty(hp, i); /* section directory now out of date */ |
| 650 |
|
return(1); |
| 651 |
|
} |
| 720 |
|
if (hp->bi[i].nrd) { |
| 721 |
|
if (hdfragflags&FF_KILL) |
| 722 |
|
hdfreefrag(hp, i); |
| 723 |
+ |
biglob(hp)->nrd -= hp->bi[i].nrd; |
| 724 |
|
hp->bi[i].nrd = 0; /* make sure it's gone */ |
| 725 |
|
hp->bi[i].fo = 0L; |
| 726 |
|
} |