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
lizhongxiao
OpenXG-RAN
Commits
9aab83c5
Commit
9aab83c5
authored
Feb 19, 2019
by
Raphael Defosseux
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing a few last cppcheck errors/warnings
Signed-off-by:
Raphael Defosseux
<
raphael.defosseux@eurecom.fr
>
parent
6a47f9e7
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
8 deletions
+11
-8
common/utils/T/tracer/gui/notify.c
common/utils/T/tracer/gui/notify.c
+1
-1
common/utils/T/tracer/multi.c
common/utils/T/tracer/multi.c
+1
-0
common/utils/T/tracer/textlog.c
common/utils/T/tracer/textlog.c
+5
-0
common/utils/T/tracer/utils.c
common/utils/T/tracer/utils.c
+1
-1
openair1/PHY/TOOLS/lte_phy_scope_tm4.c
openair1/PHY/TOOLS/lte_phy_scope_tm4.c
+0
-3
openair3/S1AP/s1ap_eNB_trace.c
openair3/S1AP/s1ap_eNB_trace.c
+1
-1
openair3/TEST/EPC_TEST/generate_scenario.c
openair3/TEST/EPC_TEST/generate_scenario.c
+1
-1
openair3/TEST/EPC_TEST/play_scenario.c
openair3/TEST/EPC_TEST/play_scenario.c
+1
-1
No files found.
common/utils/T/tracer/gui/notify.c
View file @
9aab83c5
...
...
@@ -46,7 +46,7 @@ void unregister_notifier(gui *_g, unsigned long notifier_id) {
if
(
g
->
notifiers
[
i
].
id
==
notifier_id
)
break
;
if
(
i
==
g
->
notifiers_count
)
ERR
(
"%s:%d: notifier_id %l
d
not found
\n
"
,
__FILE__
,
__LINE__
,
notifier_id
);
ERR
(
"%s:%d: notifier_id %l
u
not found
\n
"
,
__FILE__
,
__LINE__
,
notifier_id
);
free
(
g
->
notifiers
[
i
].
notification
);
memmove
(
g
->
notifiers
+
i
,
g
->
notifiers
+
i
+
1
,
...
...
common/utils/T/tracer/multi.c
View file @
9aab83c5
...
...
@@ -261,6 +261,7 @@ int main(int n, char **v)
if
(
fds
==
NULL
)
{
perror
(
"calloc"
);
exit
(
1
);
}
}
i
=
0
;
if
(
fds
==
NULL
)
{
perror
(
"null fds pointer"
);
exit
(
1
);
}
fds
[
i
].
fd
=
l
;
fds
[
i
].
events
=
POLLIN
;
i
++
;
...
...
common/utils/T/tracer/textlog.c
View file @
9aab83c5
...
...
@@ -195,5 +195,10 @@ int main(int n, char **v)
handle_event
(
h
,
e
);
}
if
(
on_off_name
!=
NULL
)
free
(
on_off_name
);
if
(
on_off_action
!=
NULL
)
free
(
on_off_action
);
return
0
;
}
common/utils/T/tracer/utils.c
View file @
9aab83c5
...
...
@@ -273,6 +273,6 @@ void PUTX2(OBUF *o, int i) {
void
PUTUL
(
OBUF
*
o
,
unsigned
long
l
)
{
char
s
[
128
];
sprintf
(
s
,
"%l
d
"
,
l
);
sprintf
(
s
,
"%l
u
"
,
l
);
PUTS
(
o
,
s
);
}
openair1/PHY/TOOLS/lte_phy_scope_tm4.c
View file @
9aab83c5
...
...
@@ -812,9 +812,6 @@ void phy_scope_UE(FD_lte_phy_scope_ue *form,
free
(
bit1
);
free
(
bit_pdcch
);
free
(
llr_pdcch
);
for
(
arx
=
0
;
arx
<
nb_antennas_rx
;
arx
++
)
{
free
(
chest_t_abs
[
arx
]);
}
//This is done to avoid plotting old data when TB0 is disabled, and TB1 is mapped onto CW0
/*if (phy_vars_ue->transmission_mode[eNB_id]==3 && phy_vars_ue->transmission_mode[eNB_id]==4){
...
...
openair3/S1AP/s1ap_eNB_trace.c
View file @
9aab83c5
...
...
@@ -107,7 +107,7 @@ int s1ap_eNB_handle_trace_start(uint32_t assoc_id,
{
S1AP_TraceStart_t
*
container
;
S1AP_TraceStartIEs_t
*
ie
;
struct
s1ap_eNB_ue_context_s
*
ue_desc_p
;
struct
s1ap_eNB_ue_context_s
*
ue_desc_p
=
NULL
;
struct
s1ap_eNB_mme_data_s
*
mme_ref_p
;
DevAssert
(
pdu
!=
NULL
);
...
...
openair3/TEST/EPC_TEST/generate_scenario.c
View file @
9aab83c5
...
...
@@ -270,7 +270,7 @@ static void enb_config_display(void)
printf
(
" ENB CONFIG FILE CONTENT LOADED:
\n
"
);
printf
(
"----------------------------------------------------------------------
\n
"
);
for
(
i
=
0
;
i
<
g_enb_properties
.
number
;
i
++
)
{
printf
(
"ENB CONFIG for instance %
u
:
\n\n
"
,
i
);
printf
(
"ENB CONFIG for instance %
d
:
\n\n
"
,
i
);
printf
(
"
\t
eNB name:
\t
%s
\n
"
,
g_enb_properties
.
properties
[
i
]
->
eNB_name
);
printf
(
"
\t
eNB ID:
\t
%"
PRIu32
"
\n
"
,
g_enb_properties
.
properties
[
i
]
->
eNB_id
);
printf
(
"
\t
Cell type:
\t
%s
\n
"
,
g_enb_properties
.
properties
[
i
]
->
cell_type
==
CELL_MACRO_ENB
?
"CELL_MACRO_ENB"
:
"CELL_HOME_ENB"
);
...
...
openair3/TEST/EPC_TEST/play_scenario.c
View file @
9aab83c5
...
...
@@ -1103,7 +1103,7 @@ et_config_parse_opt_line (
fprintf
(
stderr
,
"Please provide a valid -D/--delay-on-exit argument, %s is not a valid value
\n
"
,
delay_on_exit
);
exit
(
1
);
}
printf
(
"Delay on exit is %
u
\n
"
,
delay_on_exit
);
printf
(
"Delay on exit is %
d
\n
"
,
(
int
)
delay_on_exit
);
}
break
;
...
...
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