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:
@@ -205,7 +205,7 @@ static void *_nas_user_mngr(void *args)
|
||||
LOG_FUNC_IN;
|
||||
|
||||
pthread_setname_np( pthread_self(), "nas_user_mngr");
|
||||
int exit_loop = FALSE;
|
||||
bool exit_loop = false;
|
||||
|
||||
int *fd = (int *) args;
|
||||
|
||||
@@ -251,7 +251,7 @@ static void *_nas_network_mngr(void *args)
|
||||
LOG_TRACE (INFO, "UE-MAIN - Network connection manager started (%d)", *fd);
|
||||
|
||||
/* Network receiving loop */
|
||||
while (TRUE) {
|
||||
while (true) {
|
||||
/* Read the network data message */
|
||||
bytes = network_api_read_data (*fd);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user