Small socketlib static and return value tweaks
This commit is contained in:
+2
-2
@@ -183,7 +183,7 @@ void delay(long pMillisecs, struct timeval *pRes)
|
||||
select(0,NULL,NULL,NULL,pRes);
|
||||
}
|
||||
|
||||
int getCorrectedEncodeSize(int pSize)
|
||||
static int getCorrectedEncodeSize(int pSize)
|
||||
{
|
||||
if(pSize % 4 == 0)
|
||||
{
|
||||
@@ -264,7 +264,7 @@ char *encode_base64(unsigned char *input, int length)
|
||||
b64 = BIO_push(b64, bmem);
|
||||
|
||||
BIO_write(b64, input, length);
|
||||
BIO_flush(b64);
|
||||
(void)BIO_flush(b64);
|
||||
BIO_get_mem_ptr(b64, &bptr);
|
||||
|
||||
char *buff = (char *)malloc(bptr->length);
|
||||
|
||||
Reference in New Issue
Block a user