Skip to content
Snippets Groups Projects
Commit d399253c authored by Rafaël Carré's avatar Rafaël Carré
Browse files

IAX: fix warnings

(cherry picked from commit fd7a113a)
parent 709608a5
Branches
Tags
No related merge requests found
......@@ -19,7 +19,7 @@
#pragma warning(disable:4200)
#endif
#ifndef LINUX
#ifndef __linux__
#define socklen_t int
#endif
......
......@@ -878,7 +878,6 @@ int iax_init(int preferredportno)
{
struct sockaddr_in sin;
socklen_t sinlen;
socklen_t *slen = &sinlen;
int flags;
int bufsize = 256 * 1024;
......@@ -929,7 +928,7 @@ int iax_init(int preferredportno)
}
sinlen = sizeof(sin);
if (getsockname(netfd, (struct sockaddr *) &sin, slen) < 0)
if (getsockname(netfd, (struct sockaddr *) &sin, &sinlen) < 0)
{
close(netfd);
netfd = -1;
......
......@@ -3,7 +3,7 @@
#ifdef FREEBSD
# include <machine/endian.h>
#elif defined(LINUX)
#elif defined(__linux__)
# include <endian.h>
# include <features.h>
# include <sys/types.h>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment