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
external
sofia-sip
Commits
6264fc9c
Commit
6264fc9c
authored
Nov 30, 2005
by
Pekka Pessi
Browse files
Silenced warning in su_addrinfo.c.
darcs-hash:20051130152538-65a35-d232ae83a5052ef15d747d752403fe7b4e57e6b4.gz
parent
d40ad7e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
libsofia-sip-ua/su/su_addrinfo.c
View file @
6264fc9c
...
...
@@ -355,7 +355,7 @@ getaddrinfo(hostname, servname, hints, res)
if
((
sp
=
getservbyname
(
servname
,
proto
))
==
NULL
)
ERR
(
EAI_SERVICE
);
port
=
sp
->
s_port
;
if
(
pai
->
ai_socktype
==
GAI_ANY
)
if
(
pai
->
ai_socktype
==
GAI_ANY
)
{
if
(
strcmp
(
sp
->
s_proto
,
"udp"
)
==
0
)
{
pai
->
ai_socktype
=
SOCK_DGRAM
;
pai
->
ai_protocol
=
IPPROTO_UDP
;
...
...
@@ -364,6 +364,7 @@ getaddrinfo(hostname, servname, hints, res)
pai
->
ai_protocol
=
IPPROTO_TCP
;
}
else
ERR
(
EAI_PROTOCOL
);
/*xxx*/
}
}
}
...
...
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