Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belle-sip
Commits
b2443349
Commit
b2443349
authored
Aug 19, 2013
by
Ghislain MARY
Browse files
Fix compilation on some architectures.
parent
8e2d951f
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/dns.c
View file @
b2443349
...
...
@@ -649,7 +649,7 @@ static size_t dns_af_len(int af) {
return
table
[
af
];
}
/* dns_af_len() */
#define dns_sa_family(sa) (((struct sockaddr *)(sa))->s
a
_family)
#define dns_sa_family(sa) (((struct sockaddr
_storage
*)(sa))->s
s
_family)
#define dns_sa_len(sa) dns_af_len(dns_sa_family(sa))
...
...
src/transports/udp_listeningpoint.c
View file @
b2443349
...
...
@@ -145,7 +145,7 @@ static int on_udp_data(belle_sip_udp_listening_point_t *lp, unsigned int events)
belle_sip_channel_t
*
chan
;
struct
addrinfo
ai
=
{
0
};
belle_sip_address_remove_v4_mapping
((
struct
sockaddr
*
)
&
addr
,(
struct
sockaddr
*
)
&
addr
,
&
addrlen
);
ai
.
ai_family
=
((
struct
sockaddr
*
)
&
addr
)
->
sa
_family
;
ai
.
ai_family
=
addr
.
ss
_family
;
ai
.
ai_addr
=
(
struct
sockaddr
*
)
&
addr
;
ai
.
ai_addrlen
=
addrlen
;
chan
=
_belle_sip_listening_point_get_channel
((
belle_sip_listening_point_t
*
)
lp
,
NULL
,
&
ai
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment