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
3e2adfbc
Commit
3e2adfbc
authored
Jan 08, 2016
by
Xenofon Foukas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug to allocate memory in the stack instead of dynamically for the timer search key
parent
11b2f829
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
openair2/ENB_APP/enb_agent_common.c
openair2/ENB_APP/enb_agent_common.c
+4
-3
No files found.
openair2/ENB_APP/enb_agent_common.c
View file @
3e2adfbc
...
...
@@ -470,10 +470,11 @@ err_code_t enb_agent_destroy_timers(void){
struct
enb_agent_timer_element_s
*
get_timer_entry
(
long
timer_id
)
{
struct
enb_agent_timer_element_s
*
search
=
calloc
(
1
,
sizeof
(
*
search
));
search
->
timer_id
=
timer_id
;
struct
enb_agent_timer_element_s
search
;
memset
(
&
search
,
0
,
sizeof
(
struct
enb_agent_timer_element_s
));
search
.
timer_id
=
timer_id
;
return
RB_FIND
(
enb_agent_map
,
&
timer_instance
.
enb_agent_head
,
search
);
return
RB_FIND
(
enb_agent_map
,
&
timer_instance
.
enb_agent_head
,
&
search
);
}
void
enb_agent_sleep_until
(
struct
timespec
*
ts
,
int
delay
)
{
...
...
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