Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup, optimization, and bug fixes #138

Merged
merged 14 commits into from
Feb 24, 2012
Prev Previous commit
Next Next commit
Small socketlib static and return value tweaks
  • Loading branch information
toofishes committed Feb 24, 2012
commit 7fcfd3ddacff06ff537ee5bfdf453aa856513ed3
4 changes: 2 additions & 2 deletions socketlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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);
Expand Down