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
e9903f9d
Commit
e9903f9d
authored
Apr 03, 2011
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix calloc usage.
parent
29abf6f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/control/dbus/dbus.c
modules/control/dbus/dbus.c
+2
-2
No files found.
modules/control/dbus/dbus.c
View file @
e9903f9d
...
@@ -355,7 +355,7 @@ static dbus_bool_t add_timeout( DBusTimeout *p_timeout, void *p_data )
...
@@ -355,7 +355,7 @@ static dbus_bool_t add_timeout( DBusTimeout *p_timeout, void *p_data )
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
intf_sys_t
*
p_sys
=
(
intf_sys_t
*
)
p_intf
->
p_sys
;
intf_sys_t
*
p_sys
=
(
intf_sys_t
*
)
p_intf
->
p_sys
;
timeout_info_t
*
p_info
=
calloc
(
sizeof
(
timeout_info_t
),
1
);
timeout_info_t
*
p_info
=
calloc
(
1
,
sizeof
(
timeout_info_t
)
);
p_info
->
i_remaining
=
dbus_timeout_get_interval
(
p_timeout
)
*
1000
;
/* µs */
p_info
->
i_remaining
=
dbus_timeout_get_interval
(
p_timeout
)
*
1000
;
/* µs */
p_info
->
p_timeout
=
p_timeout
;
p_info
->
p_timeout
=
p_timeout
;
...
@@ -724,7 +724,7 @@ static void Run ( intf_thread_t *p_intf )
...
@@ -724,7 +724,7 @@ static void Run ( intf_thread_t *p_intf )
vlc_mutex_lock
(
&
p_sys
->
lock
);
vlc_mutex_lock
(
&
p_sys
->
lock
);
int
i_watches
=
vlc_array_count
(
p_sys
->
p_watches
);
int
i_watches
=
vlc_array_count
(
p_sys
->
p_watches
);
struct
pollfd
*
p_fds
=
calloc
(
sizeof
(
struct
pollfd
),
i_watches
);
struct
pollfd
*
p_fds
=
calloc
(
i_watches
,
sizeof
(
struct
pollfd
)
);
int
i_fds
=
GetPollFds
(
p_intf
,
p_fds
);
int
i_fds
=
GetPollFds
(
p_intf
,
p_fds
);
...
...
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