Changeset f002800e in rtems


Ignore:
Timestamp:
Sep 4, 2008, 2:20:51 PM (11 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.9, master
Children:
f5b3ec91
Parents:
5b708c1
Message:

Use bool instead of boolean.

Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libi2c/libi2c.c

    r5b708c1 rf002800e  
    105105rtems_device_major_number rtems_libi2c_major;
    106106
    107 static boolean            is_initialized = FALSE;
     107static bool is_initialized = false;
    108108
    109109static struct i2cbus
     
    224224
    225225  if ( RTEMS_SUCCESSFUL == rval ) {
    226         is_initialized     = TRUE;
     226        is_initialized     = true;
    227227        rtems_libi2c_major = major;
    228228  } else {
     
    374374        rtems_semaphore_delete (libmutex);
    375375    libmutex = 0;
    376         is_initialized = FALSE;
     376        is_initialized = false;
    377377    return -1;
    378378  }
     
    577577  int sc = 0;
    578578  void *args;
    579   rtems_boolean is_started = FALSE;
     579  bool is_started = false;
    580580  DECL_CHECKED_BH (busno, bush, minor, -)
    581581   
  • cpukit/libi2c/libi2c.h

    r5b708c1 rf002800e  
    438438                           /* only valid for SPI drivers:           */
    439439  uint8_t  bits_per_char;  /* how many bits per byte/word/longword? */
    440   boolean  lsb_first;      /* TRUE: send LSB first                  */
    441   boolean  clock_inv;      /* TRUE: inverted clock (high active)    */
    442   boolean  clock_phs;      /* TRUE: clock starts toggling at start of data tfr */
    443   uint32_t  idle_char;      /* This character will be continuously transmitted in read only functions */
     440  bool     lsb_first;      /* true: send LSB first                  */
     441  bool     clock_inv;      /* true: inverted clock (high active)    */
     442  bool     clock_phs;      /* true: clock starts toggling at start of data tfr */
     443  uint32_t  idle_char;     /* This character will be continuously transmitted in read only functions */
    444444} rtems_libi2c_tfr_mode_t;
    445445
  • cpukit/libnetworking/lib/ftpfs.c

    r5b708c1 rf002800e  
    115115   * other stuff to remember
    116116   */
    117   boolean eof_reached;
     117  bool eof_reached;
    118118};
    119119
     
    235235  size_t tmp_size;
    236236  int eno = 0;
    237   rtems_boolean finished = FALSE;
     237  bool finished = false;
    238238  do {
    239239    /*
     
    265265        (isdigit((unsigned int)rd_buffer[2])) &&
    266266        (rd_buffer[3] == ' ')) {
    267       finished = TRUE;
     267      finished = true;
    268268      rd_buffer[3] = '\0';
    269269      *msg_code = atol(rd_buffer);
     
    536536  int eno = 0;
    537537  rtems_status_code rc;
    538   rtems_boolean is_write = FALSE;
    539   rtems_boolean sema_obtained = FALSE;
     538  bool is_write = false;
     539  bool sema_obtained = false;
    540540  struct ftpStream *fsp = NULL;
    541541  int msg_tmp = 0;
     
    570570    rc = rtems_semaphore_obtain (ftp_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
    571571    if (rc == RTEMS_SUCCESSFUL) {
    572       sema_obtained = TRUE;
     572      sema_obtained = true;
    573573    }
    574574    else {
     
    600600    fsp = ftpStreams[s] = malloc (sizeof (struct ftpStream));
    601601    rtems_semaphore_release (ftp_mutex);
    602     sema_obtained = FALSE;
     602    sema_obtained = false;
    603603    if (fsp == NULL) {
    604604      eno = ENOMEM;
     
    610610      fsp->port_socket = -1;
    611611      fsp->data_socket = -1;
    612       fsp->eof_reached = FALSE;
     612      fsp->eof_reached = false;
    613613    }
    614614  }
     
    945945  if (sema_obtained) {
    946946    rtems_semaphore_release (ftp_mutex);
    947     sema_obtained = FALSE;
     947    sema_obtained = false;
    948948  }
    949949#if 0
     
    998998    else {
    999999      eno = rtems_ftp_get_message(fsp,&msg_tmp);
    1000       fsp->eof_reached = TRUE;
     1000      fsp->eof_reached = true;
    10011001      if ((eno == 0) &&
    10021002          (msg_tmp != FTP_REPLY_TFERCMPL)) {
Note: See TracChangeset for help on using the changeset viewer.