Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
spbro
OpenXG-RAN
Commits
79d51ce6
Commit
79d51ce6
authored
Dec 26, 2020
by
Laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reallocarray() doesn't exist in old Ubuntu
parent
a432feda
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
common/utils/ocp_itti/intertask_interface.cpp
common/utils/ocp_itti/intertask_interface.cpp
+1
-1
No files found.
common/utils/ocp_itti/intertask_interface.cpp
View file @
79d51ce6
...
...
@@ -340,7 +340,7 @@ extern "C" {
pthread_mutex_lock
(
&
lock_nb_queues
);
int
newQueue
=
nb_queues
;
nb_queues
++
;
AssertFatal
(
realloc
array
(
tasks
,
nb_queues
,
sizeof
(
*
tasks
)),
"no memory"
);
AssertFatal
(
realloc
(
tasks
,
nb_queues
*
sizeof
(
*
tasks
)),
"no memory"
);
pthread_mutex_unlock
(
&
lock_nb_queues
);
LOG_I
(
TMR
,
"Starting itti queue: %s as task %d
\n
"
,
tasks_info
->
name
,
newQueue
);
pthread_mutex_init
(
&
tasks
[
newQueue
].
queue_cond_lock
,
NULL
);
...
...
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