diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 12:41:40 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-09-05 12:41:40 +0000 |
commit | bcd536844aae6c9b780e3db3efd741a24c68bf90 (patch) | |
tree | befc07ad56c780da1276038af3fd127bb5dbadc5 | |
parent | 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-bcd536844aae6c9b780e3db3efd741a24c68bf90.tar.bz2 |
Convert to "bool".
-rw-r--r-- | c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c | 16 | ||||
-rw-r--r-- | c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c | 2 |
2 files changed, 9 insertions, 9 deletions
diff --git a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c index 2c1e47754b..dd80a29696 100644 --- a/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c +++ b/c/src/lib/libcpu/powerpc/mpc83xx/network/tsec.c @@ -593,7 +593,7 @@ static void mpc83xx_tsec_receive_packets { PQBufferDescriptor_t *BD_ptr; struct mbuf *m,*n; - boolean finished = FALSE; + bool finished = false; uint16_t status; struct ether_header *eh; int bd_idx; @@ -671,7 +671,7 @@ static void mpc83xx_tsec_refill_rxbds { PQBufferDescriptor_t *BD_ptr; struct mbuf *m,*n; - boolean finished = FALSE; + bool finished = false; int bd_idx; BD_ptr = sc->Rx_NxtFill_BD; @@ -689,7 +689,7 @@ static void mpc83xx_tsec_refill_rxbds } } if (m == NULL) { - finished = TRUE; + finished = true; } else { bd_idx = BD_ptr - sc->Rx_Frst_BD; @@ -735,7 +735,7 @@ static void mpc83xx_tsec_rxDaemon { struct mpc83xx_tsec_struct *sc = (struct mpc83xx_tsec_struct *)arg; - int finished = FALSE; + bool finished = false; rtems_event_set events; #if !defined(CLREVENT_IN_IRQ) uint32_t irq_events; @@ -1070,7 +1070,7 @@ static void mpc83xx_tsec_txDaemon (struct mpc83xx_tsec_struct *)arg; struct ifnet *ifp = &sc->arpcom.ac_if; struct mbuf *m; - int finished = FALSE; + bool finished = false; rtems_event_set events; #if !defined(CLREVENT_IN_IRQ) uint32_t irq_events; @@ -1376,14 +1376,14 @@ static void mpc83xx_tsec_install_irq_handlers | Input Parameters: | \*-------------------------------------------------------------------------*/ struct mpc83xx_tsec_struct *sc, /* ptr to control structure */ - int install /* TRUE: install, FALSE: remove */ + bool install /* true: install, false: remove */ ) /*-------------------------------------------------------------------------*\ | Return Value: | | <none> | \*=========================================================================*/ { - int i; + size_t i; rtems_irq_connect_data irq_conn_data[3] = { { @@ -1496,7 +1496,7 @@ static void mpc83xx_tsec_init /* * install interrupt handlers */ - mpc83xx_tsec_install_irq_handlers(sc,1); + mpc83xx_tsec_install_irq_handlers(sc,true); } /* * Set flags appropriately diff --git a/c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c b/c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c index 866bf30f97..a5aaa2d344 100644 --- a/c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c +++ b/c/src/lib/libcpu/powerpc/new-exceptions/raw_exception.c @@ -48,7 +48,7 @@ static rtems_raw_except_global_settings* local_settings; void * codemove(void *, const void *, unsigned int, unsigned long); -boolean bsp_exceptions_in_RAM = TRUE; +bool bsp_exceptions_in_RAM = true; /* DEPRECATED VARIABLE; we need this to support * libbsp/powerpc/shared/vectors/vectors.S; |