Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
e3578584
Commit
e3578584
authored
May 19, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing const
parent
41697f25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
include/vlc_network.h
include/vlc_network.h
+2
-2
No files found.
include/vlc_network.h
View file @
e3578584
...
...
@@ -276,7 +276,7 @@ net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len)
#ifdef IN_MULTICAST
case
AF_INET
:
{
struct
sockaddr_in
*
v4
=
(
struct
sockaddr_in
*
)
addr
;
const
struct
sockaddr_in
*
v4
=
(
const
struct
sockaddr_in
*
)
addr
;
if
((
size_t
)
len
<
sizeof
(
*
v4
))
return
VLC_FALSE
;
return
IN_MULTICAST
(
ntohl
(
v4
->
sin_addr
.
s_addr
))
!=
0
;
...
...
@@ -286,7 +286,7 @@ net_SockAddrIsMulticast (const struct sockaddr *addr, socklen_t len)
#ifdef IN6_IS_ADDR_MULTICAST
case
AF_INET6
:
{
struct
sockaddr_in6
*
v6
=
(
struct
sockaddr_in6
*
)
addr
;
const
struct
sockaddr_in6
*
v6
=
(
const
struct
sockaddr_in6
*
)
addr
;
if
((
size_t
)
len
<
sizeof
(
*
v6
))
return
VLC_FALSE
;
return
IN6_IS_ADDR_MULTICAST
(
&
v6
->
sin6_addr
)
!=
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