forked from wolfSSL/wolfssl
Moved int pos declaration at the top the func
This commit is contained in:
@ -1441,9 +1441,10 @@ int wolfSSL_BIO_seek(WOLFSSL_BIO *bio, int ofs)
|
|||||||
}
|
}
|
||||||
int wolfSSL_BIO_tell(WOLFSSL_BIO* bio)
|
int wolfSSL_BIO_tell(WOLFSSL_BIO* bio)
|
||||||
{
|
{
|
||||||
WOLFSSL_ENTER("wolfSSL_BIO_tell");
|
|
||||||
int pos;
|
int pos;
|
||||||
|
|
||||||
|
WOLFSSL_ENTER("wolfSSL_BIO_tell");
|
||||||
|
|
||||||
if (bio == NULL) {
|
if (bio == NULL) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -1452,8 +1453,8 @@ int wolfSSL_BIO_tell(WOLFSSL_BIO* bio)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
pos =(int) XFTELL((XFILE)bio->ptr);
|
pos = (int)XFTELL((XFILE)bio->ptr);
|
||||||
if(pos < 0)
|
if (pos < 0)
|
||||||
return -1;
|
return -1;
|
||||||
else
|
else
|
||||||
return pos;
|
return pos;
|
||||||
|
Reference in New Issue
Block a user