Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
0f55beac
Commit
0f55beac
authored
Jul 27, 2005
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add const where appropriate
parent
24908209
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
include/network.h
include/network.h
+3
-3
modules/misc/network/ipv4.c
modules/misc/network/ipv4.c
+2
-2
src/misc/net.c
src/misc/net.c
+2
-2
No files found.
include/network.h
View file @
0f55beac
...
...
@@ -45,10 +45,10 @@
*****************************************************************************/
struct
network_socket_t
{
c
har
*
psz_bind_addr
;
c
onst
char
*
psz_bind_addr
;
int
i_bind_port
;
c
har
*
psz_server_addr
;
c
onst
char
*
psz_server_addr
;
int
i_server_port
;
int
i_ttl
;
...
...
@@ -322,7 +322,7 @@ VLC_EXPORT( int *, __net_ListenTCP, ( vlc_object_t *, const char *, int ) );
VLC_EXPORT
(
int
,
__net_Accept
,
(
vlc_object_t
*
,
int
*
,
mtime_t
)
);
#define net_OpenUDP(a, b, c, d, e ) __net_OpenUDP(VLC_OBJECT(a), b, c, d, e)
VLC_EXPORT
(
int
,
__net_OpenUDP
,
(
vlc_object_t
*
p_this
,
c
har
*
psz_bind
,
int
i_bind
,
char
*
psz_server
,
int
i_server
)
);
VLC_EXPORT
(
int
,
__net_OpenUDP
,
(
vlc_object_t
*
p_this
,
c
onst
char
*
psz_bind
,
int
i_bind
,
const
char
*
psz_server
,
int
i_server
)
);
VLC_EXPORT
(
void
,
net_Close
,
(
int
fd
)
);
VLC_EXPORT
(
void
,
net_ListenClose
,
(
int
*
fd
)
);
...
...
modules/misc/network/ipv4.c
View file @
0f55beac
...
...
@@ -160,9 +160,9 @@ static int BuildAddr( struct sockaddr_in * p_socket,
*****************************************************************************/
static
int
OpenUDP
(
vlc_object_t
*
p_this
,
network_socket_t
*
p_socket
)
{
char
*
psz_bind_addr
=
p_socket
->
psz_bind_addr
;
c
onst
c
har
*
psz_bind_addr
=
p_socket
->
psz_bind_addr
;
int
i_bind_port
=
p_socket
->
i_bind_port
;
char
*
psz_server_addr
=
p_socket
->
psz_server_addr
;
c
onst
c
har
*
psz_server_addr
=
p_socket
->
psz_server_addr
;
int
i_server_port
=
p_socket
->
i_server_port
;
int
i_handle
,
i_opt
;
...
...
src/misc/net.c
View file @
0f55beac
...
...
@@ -502,8 +502,8 @@ int __net_Accept( vlc_object_t *p_this, int *pi_fd, mtime_t i_wait )
*****************************************************************************
* Open a UDP connection and return a handle
*****************************************************************************/
int
__net_OpenUDP
(
vlc_object_t
*
p_this
,
char
*
psz_bind
,
int
i_bind
,
char
*
psz_server
,
int
i_server
)
int
__net_OpenUDP
(
vlc_object_t
*
p_this
,
c
onst
c
har
*
psz_bind
,
int
i_bind
,
c
onst
c
har
*
psz_server
,
int
i_server
)
{
vlc_value_t
val
;
void
*
private
;
...
...
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