Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
4b002b9a
Commit
4b002b9a
authored
Mar 01, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove write-only variables
parent
e8330066
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
16 deletions
+0
-16
src/input/stream_memory.c
src/input/stream_memory.c
+0
-2
src/network/httpd.c
src/network/httpd.c
+0
-2
src/stream_output/sap.c
src/stream_output/sap.c
+0
-12
No files found.
src/input/stream_memory.c
View file @
4b002b9a
...
@@ -104,7 +104,6 @@ static int Control( stream_t *s, int i_query, va_list args )
...
@@ -104,7 +104,6 @@ static int Control( stream_t *s, int i_query, va_list args )
bool
*
p_bool
;
bool
*
p_bool
;
uint64_t
*
pi_64
,
i_64
;
uint64_t
*
pi_64
,
i_64
;
int
i_int
;
switch
(
i_query
)
switch
(
i_query
)
{
{
...
@@ -138,7 +137,6 @@ static int Control( stream_t *s, int i_query, va_list args )
...
@@ -138,7 +137,6 @@ static int Control( stream_t *s, int i_query, va_list args )
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
case
STREAM_CONTROL_ACCESS
:
case
STREAM_CONTROL_ACCESS
:
i_int
=
(
int
)
va_arg
(
args
,
int
);
msg_Err
(
s
,
"Hey, what are you thinking ?"
msg_Err
(
s
,
"Hey, what are you thinking ?"
"DON'T USE STREAM_CONTROL_ACCESS !!!"
);
"DON'T USE STREAM_CONTROL_ACCESS !!!"
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
...
...
src/network/httpd.c
View file @
4b002b9a
...
@@ -985,7 +985,6 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
...
@@ -985,7 +985,6 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
httpd_host_t
*
host
;
httpd_host_t
*
host
;
tls_server_t
*
p_tls
;
tls_server_t
*
p_tls
;
char
*
psz_host
;
char
*
psz_host
;
vlc_value_t
ptrval
;
int
i
;
int
i
;
if
(
psz_hostname
==
NULL
)
if
(
psz_hostname
==
NULL
)
...
@@ -1015,7 +1014,6 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
...
@@ -1015,7 +1014,6 @@ httpd_host_t *httpd_TLSHostNew( vlc_object_t *p_this, const char *psz_hostname,
httpd
->
i_host
=
0
;
httpd
->
i_host
=
0
;
httpd
->
host
=
NULL
;
httpd
->
host
=
NULL
;
ptrval
.
p_address
=
httpd
;
libvlc_priv
(
p_this
->
p_libvlc
)
->
p_httpd
=
httpd
;
libvlc_priv
(
p_this
->
p_libvlc
)
->
p_httpd
=
httpd
;
vlc_object_attach
(
httpd
,
p_this
->
p_libvlc
);
vlc_object_attach
(
httpd
,
p_this
->
p_libvlc
);
}
}
...
...
src/stream_output/sap.c
View file @
4b002b9a
...
@@ -211,7 +211,6 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
...
@@ -211,7 +211,6 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
{
{
int
i
;
int
i
;
char
psz_addr
[
NI_MAXNUMERICHOST
];
char
psz_addr
[
NI_MAXNUMERICHOST
];
bool
b_ipv6
=
false
,
b_ssm
=
false
;
sap_session_t
*
p_sap_session
;
sap_session_t
*
p_sap_session
;
mtime_t
i_hash
;
mtime_t
i_hash
;
union
union
...
@@ -243,18 +242,11 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
...
@@ -243,18 +242,11 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
memcpy
(
a6
->
s6_addr
+
2
,
"
\x00\x00\x00\x00\x00\x00
"
memcpy
(
a6
->
s6_addr
+
2
,
"
\x00\x00\x00\x00\x00\x00
"
"
\x00\x00\x00\x00\x00\x02\x7f\xfe
"
,
14
);
"
\x00\x00\x00\x00\x00\x02\x7f\xfe
"
,
14
);
if
(
IN6_IS_ADDR_MULTICAST
(
a6
)
)
if
(
IN6_IS_ADDR_MULTICAST
(
a6
)
)
{
/* SSM <=> ff3x::/32 */
b_ssm
=
(
U32_AT
(
a6
->
s6_addr
)
&
0xfff0ffff
)
==
0xff300000
;
/* force flags to zero, preserve scope */
/* force flags to zero, preserve scope */
a6
->
s6_addr
[
1
]
&=
0xf
;
a6
->
s6_addr
[
1
]
&=
0xf
;
}
else
else
/* Unicast IPv6 - assume global scope */
/* Unicast IPv6 - assume global scope */
memcpy
(
a6
->
s6_addr
,
"
\xff\x0e
"
,
2
);
memcpy
(
a6
->
s6_addr
,
"
\xff\x0e
"
,
2
);
b_ipv6
=
true
;
break
;
break
;
}
}
#endif
#endif
...
@@ -280,11 +272,7 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
...
@@ -280,11 +272,7 @@ int SAP_Add (sap_handler_t *p_sap, session_descriptor_t *p_session)
ipv4
=
0
;
ipv4
=
0
;
else
else
/* other addresses => 224.2.127.254 */
/* other addresses => 224.2.127.254 */
{
/* SSM: 232.0.0.0/8 */
b_ssm
=
(
ipv4
&
htonl
(
255
<<
24
))
==
htonl
(
232
<<
24
);
ipv4
=
htonl
(
0xe0027ffe
);
ipv4
=
htonl
(
0xe0027ffe
);
}
if
(
ipv4
==
0
)
if
(
ipv4
==
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