Commit 3e2d8890 authored by Cedric Roux's avatar Cedric Roux

use bool, not int

parent 1b029be0
...@@ -1445,8 +1445,8 @@ nr_pdcp_ue_manager_t *nr_pdcp_sdap_get_ue_manager() { ...@@ -1445,8 +1445,8 @@ nr_pdcp_ue_manager_t *nr_pdcp_sdap_get_ue_manager() {
return nr_pdcp_ue_manager; return nr_pdcp_ue_manager;
} }
/* returns 0 in case of error, 1 if everything ok */ /* returns false in case of error, true if everything ok */
int const nr_pdcp_get_statistics( const bool nr_pdcp_get_statistics(
int rnti, int rnti,
int srb_flag, int srb_flag,
int rb_id, int rb_id,
...@@ -1454,7 +1454,7 @@ int const nr_pdcp_get_statistics( ...@@ -1454,7 +1454,7 @@ int const nr_pdcp_get_statistics(
{ {
nr_pdcp_ue_t *ue; nr_pdcp_ue_t *ue;
nr_pdcp_entity_t *rb; nr_pdcp_entity_t *rb;
int ret; bool ret;
nr_pdcp_manager_lock(nr_pdcp_ue_manager); nr_pdcp_manager_lock(nr_pdcp_ue_manager);
ue = nr_pdcp_manager_get_ue(nr_pdcp_ue_manager, rnti); ue = nr_pdcp_manager_get_ue(nr_pdcp_ue_manager, rnti);
...@@ -1473,9 +1473,9 @@ int const nr_pdcp_get_statistics( ...@@ -1473,9 +1473,9 @@ int const nr_pdcp_get_statistics(
if (rb != NULL) { if (rb != NULL) {
rb->get_stats(rb, out); rb->get_stats(rb, out);
ret = 1; ret = true;
} else { } else {
ret = 0; ret = false;
} }
nr_pdcp_manager_unlock(nr_pdcp_ue_manager); nr_pdcp_manager_unlock(nr_pdcp_ue_manager);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment