Commit aed9711f authored by Alexandre Savard's avatar Alexandre Savard

#6058: Fix base64 encoding related warnings

parent 6194ff90
......@@ -878,6 +878,7 @@ int iax_init(int preferredportno)
{
struct sockaddr_in sin;
socklen_t sinlen;
socklen_t *slen = &sinlen;
int flags;
int bufsize = 256 * 1024;
......@@ -928,7 +929,7 @@ int iax_init(int preferredportno)
}
sinlen = sizeof(sin);
if (getsockname(netfd, (struct sockaddr *) &sin, &sinlen) < 0)
if (getsockname(netfd, (struct sockaddr *) &sin, slen) < 0)
{
close(netfd);
netfd = -1;
......
......@@ -319,7 +319,7 @@ char* AudioSrtpSession::encodeBase64 (unsigned char *input, int length)
b64 = BIO_push (b64, bmem);
BIO_write (b64, input, length);
BIO_flush (b64);
// BIO_flush (b64);
// get pointer to data
BIO_get_mem_ptr (b64, &bptr);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment