Small socketlib static and return value tweaks

This commit is contained in:
Dan McGee
2012-02-24 14:17:30 -06:00
parent f5e7e87c51
commit 7fcfd3ddac
+2 -2
View File
@@ -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);