Syntax
This commit is contained in:
@@ -532,15 +532,15 @@ int32_t NSPV_setequihdr(struct NSPV_equihdr *hdr,int32_t height)
|
|||||||
int32_t NSPV_getntzsproofresp(struct NSPV_ntzsproofresp *ptr,int32_t prevht,int32_t nextht)
|
int32_t NSPV_getntzsproofresp(struct NSPV_ntzsproofresp *ptr,int32_t prevht,int32_t nextht)
|
||||||
{
|
{
|
||||||
int32_t i;
|
int32_t i;
|
||||||
ptr->prevht = prevht;
|
ptr->prevtxidht = prevht;
|
||||||
ptr->nextht = nextht;
|
ptr->nexttxidht = nextht;
|
||||||
ptr->numhdrs = (nextht - prevht + 1);
|
ptr->common.numhdrs = (nextht - prevht + 1);
|
||||||
ptr->hdrs = (struct NSPV_equihdr *)calloc(ptr->numhdrs,sizeof(*ptr->hdrs));
|
ptr->common.hdrs = (struct NSPV_equihdr *)calloc(ptr->common.numhdrs,sizeof(*ptr->common.hdrs));
|
||||||
for (i=0; i<ptr->numhdrs; i++)
|
for (i=0; i<ptr->common.numhdrs; i++)
|
||||||
{
|
{
|
||||||
if ( NSPV_setequihdr(&ptr->hdrs[i],prevht+i) < 0 )
|
if ( NSPV_setequihdr(&ptr->common.hdrs[i],prevht+i) < 0 )
|
||||||
{
|
{
|
||||||
free(ptr->hdrs);
|
free(ptr->common.hdrs);
|
||||||
return(-1);
|
return(-1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user