Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
Icecast-common
Commits
f476beb6
Commit
f476beb6
authored
Nov 07, 2014
by
Philipp Schafft
🦁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing some compiler warnings
svn path=/icecast/trunk/net/; revision=19282
parent
b5fca17b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/resolver.c
net/resolver.c
+2
-1
No files found.
net/resolver.c
View file @
f476beb6
...
...
@@ -159,7 +159,8 @@ char *resolver_getname(const char *ip, char *buff, int len)
thread_mutex_lock
(
&
_resolver_mutex
);
if
(
inet_aton
(
ip
,
&
addr
))
{
if
((
host
=
gethostbyaddr
(
&
addr
,
sizeof
(
struct
in_addr
),
AF_INET
)))
/* casting &addr to const char* as it is recommended on win* */
if
((
host
=
gethostbyaddr
((
const
char
*
)
&
addr
,
sizeof
(
struct
in_addr
),
AF_INET
)))
{
ret
=
strncpy
(
buff
,
host
->
h_name
,
len
);
buff
[
len
-
1
]
=
'\0'
;
...
...
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