Use (std) bool instead of custom bool types

OAI is riddled with boolean_t, FALSE, TRUE, etc. This makes no sense, as
there is a standard bool type, and could lead to nasty bugs if a
definition of a bool is non-standard (0 == false, true == !false). This
commit removes all non-standard bools in the whole project.
This commit is contained in:
Robert Schmidt
2022-06-27 10:07:48 +02:00
parent 6d030ea2fa
commit 0b91791f67
176 changed files with 1414 additions and 1573 deletions
@@ -120,12 +120,12 @@ static socket_id_t * _as_simulator_mme_sid = NULL;
/*
* UE NAS process connection manager's running indicator
*/
static int _as_simulator_ue_is_running = FALSE;
static bool _as_simulator_ue_is_running = false;
/*
* MME NAS process connection manager's running indicator
*/
static int _as_simulator_mme_is_running = FALSE;
static bool _as_simulator_mme_is_running = false;
static int _set_signal_handler(int signal, void (handler)(int));
static void _signal_handler(int signal_number);
@@ -307,8 +307,8 @@ static void _signal_handler(int signal_number)
{
printf("\nWARNING\t: %s - Signal %d received\n", __FUNCTION__,
signal_number);
_as_simulator_ue_is_running = FALSE;
_as_simulator_mme_is_running = FALSE;
_as_simulator_ue_is_running = false;
_as_simulator_mme_is_running = false;
}
/*
@@ -321,7 +321,7 @@ static void* _as_simulator_ue_mngr(void* args)
int msg_id;
as_message_t msg;
_as_simulator_ue_is_running = TRUE;
_as_simulator_ue_is_running = true;
printf("INFO\t: %s - UE connection manager started\n", __FUNCTION__);
@@ -388,7 +388,7 @@ static void* _as_simulator_ue_mngr(void* args)
}
/* Close the connection to the network sublayer */
_as_simulator_ue_is_running = FALSE;
_as_simulator_ue_is_running = false;
printf("ERROR\t: The UE connection manager exited\n");
return (NULL);
}
@@ -403,7 +403,7 @@ static void* _as_simulator_mme_mngr(void* args)
int msg_id;
as_message_t msg;
_as_simulator_mme_is_running = TRUE;
_as_simulator_mme_is_running = true;
printf("INFO\t: %s - MME connection manager started\n", __FUNCTION__);
@@ -469,7 +469,7 @@ static void* _as_simulator_mme_mngr(void* args)
}
/* Close the connection to the network sublayer */
_as_simulator_mme_is_running = FALSE;
_as_simulator_mme_is_running = false;
printf("ERROR\t: %s - The MME connection manager exited\n", __FUNCTION__);
return (NULL);
}