mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 07:33:17 +00:00
Eliminate rtems_boolean.
This commit is contained in:
@@ -113,7 +113,7 @@ ytos(uint16_t y)
|
|||||||
| Returns: number of seconds since January.
|
| Returns: number of seconds since January.
|
||||||
+--------------------------------------------------------------------------*/
|
+--------------------------------------------------------------------------*/
|
||||||
static inline uint32_t
|
static inline uint32_t
|
||||||
mtos(uint8_t m, rtems_boolean leap)
|
mtos(uint8_t m, bool leap)
|
||||||
{
|
{
|
||||||
static uint16_t daysMonth[] = { 0, 0, 31, 59, 90, 120, 151, 181,
|
static uint16_t daysMonth[] = { 0, 0, 31, 59, 90, 120, 151, 181,
|
||||||
212, 243, 273, 304, 334, 365 };
|
212, 243, 273, 304, 334, 365 };
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ struct ne_softc {
|
|||||||
rtems_id rx_daemon_tid;
|
rtems_id rx_daemon_tid;
|
||||||
|
|
||||||
/* Whether we use byte-transfers with the device. */
|
/* Whether we use byte-transfers with the device. */
|
||||||
rtems_boolean byte_transfers;
|
bool byte_transfers;
|
||||||
|
|
||||||
/* The number of memory buffers which the transmit daemon has loaded
|
/* The number of memory buffers which the transmit daemon has loaded
|
||||||
with data to be sent, but which have not yet been completely
|
with data to be sent, but which have not yet been completely
|
||||||
@@ -957,9 +957,9 @@ rtems_ne_driver_attach (struct rtems_bsdnet_ifconfig *config)
|
|||||||
/* Check whether we do byte-wide or word-wide transfers. */
|
/* Check whether we do byte-wide or word-wide transfers. */
|
||||||
|
|
||||||
#ifdef NE2000_BYTE_TRANSFERS
|
#ifdef NE2000_BYTE_TRANSFERS
|
||||||
sc->byte_transfers = TRUE;
|
sc->byte_transfers = true;
|
||||||
#else
|
#else
|
||||||
sc->byte_transfers = FALSE;
|
sc->byte_transfers = false;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Handle the options passed in by the caller. */
|
/* Handle the options passed in by the caller. */
|
||||||
|
|||||||
Reference in New Issue
Block a user