Changeset 80b991e9 in rtems


Ignore:
Timestamp:
Oct 30, 2009, 8:22:45 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, master
Children:
600f76d
Parents:
7fa11e4e
Message:

Eliminate TRUE/FALSE, use bool instead of int.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/libtests/termios/init.c

    r7fa11e4e r80b991e9  
    447447  unsigned long baud_rate;
    448448
    449   while( TRUE ) {
     449  while( 1 ) {
    450450    printf( "Enter the numerical value for the new baud rate.\n" );
    451451    printf( "Choices are: 50, 75, 110, 134, 150, 200, 300, 600, 1200, 1800\n" );
     
    487487  int parity;
    488488
    489   while( TRUE ) {
     489  while( 1 ) {
    490490    printf( "Enter the numerical value for the new parity\n" );
    491491    printf( "Choices are: 0 for no parity, 1 for even parity, 2 for odd parity\n" );
     
    515515  int stop_bits;
    516516
    517   while( TRUE ) {
     517  while( 1 ) {
    518518    printf( "Enter the numerical value for the new number of stop bits\n" );
    519519    printf( "Choices are: 1 or 2\n" );
     
    540540  int data_bits;
    541541
    542   while( TRUE ) {
     542  while( 1 ) {
    543543    printf( "Enter the numerical value for the new number of data bits\n" );
    544544    printf( "Choices are: 5, 6, 7 or 8\n" );
     
    600600void canonical_input( struct termios *tp )
    601601{
    602   char c, first_time = TRUE;
     602  char c;
     603  bool first_time = true;
    603604
    604605  printf( "\nTesting canonical input\n\n" );
     
    618619    if( first_time ) {
    619620      printf( "\nYou typed:\n");
    620       first_time = FALSE;
     621      first_time = false;
    621622    }
    622623    printf( "%c", c );
Note: See TracChangeset for help on using the changeset viewer.