PR: 1763
Remove useless num = 0 assignment. Remove redundant cases on sock_ctrl(): default case handles them.
This commit is contained in:
parent
9caf25d144
commit
fe8e6bff9b
@ -172,15 +172,6 @@ static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
|
|||||||
|
|
||||||
switch (cmd)
|
switch (cmd)
|
||||||
{
|
{
|
||||||
case BIO_CTRL_RESET:
|
|
||||||
num=0;
|
|
||||||
case BIO_C_FILE_SEEK:
|
|
||||||
ret=0;
|
|
||||||
break;
|
|
||||||
case BIO_C_FILE_TELL:
|
|
||||||
case BIO_CTRL_INFO:
|
|
||||||
ret=0;
|
|
||||||
break;
|
|
||||||
case BIO_C_SET_FD:
|
case BIO_C_SET_FD:
|
||||||
sock_free(b);
|
sock_free(b);
|
||||||
b->num= *((int *)ptr);
|
b->num= *((int *)ptr);
|
||||||
@ -203,10 +194,6 @@ static long sock_ctrl(BIO *b, int cmd, long num, void *ptr)
|
|||||||
case BIO_CTRL_SET_CLOSE:
|
case BIO_CTRL_SET_CLOSE:
|
||||||
b->shutdown=(int)num;
|
b->shutdown=(int)num;
|
||||||
break;
|
break;
|
||||||
case BIO_CTRL_PENDING:
|
|
||||||
case BIO_CTRL_WPENDING:
|
|
||||||
ret=0;
|
|
||||||
break;
|
|
||||||
case BIO_CTRL_DUP:
|
case BIO_CTRL_DUP:
|
||||||
case BIO_CTRL_FLUSH:
|
case BIO_CTRL_FLUSH:
|
||||||
ret=1;
|
ret=1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user