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:
@@ -192,7 +192,7 @@ int main (int argc, const char* argv[])
|
||||
/*
|
||||
* User simulator main loop
|
||||
*/
|
||||
while (TRUE) {
|
||||
while (true) {
|
||||
char c;
|
||||
int len;
|
||||
|
||||
@@ -293,7 +293,7 @@ static void _signal_handler(int signal_number)
|
||||
*/
|
||||
static void* _receive_thread(void* arg)
|
||||
{
|
||||
while (TRUE) {
|
||||
while (true) {
|
||||
/* Receive AT response from the NAS sublayer */
|
||||
int rbytes = USER_RECV(_user_simulator_recv_buffer,
|
||||
USER_SIMULATOR_BUFFER_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user