2002-11-04 Joel Sherrill <joel@OARcorp.com>

* console/console.c, network/network.c: Removed warnings.
This commit is contained in:
Joel Sherrill
2002-11-04 22:18:26 +00:00
parent a3ed176c94
commit 1740467b24
3 changed files with 14 additions and 4 deletions

View File

@@ -2,6 +2,10 @@
* console/console.c, network/network.c: Removed warnings.
2002-11-04 Joel Sherrill <joel@OARcorp.com>
* console/console.c, network/network.c: Removed warnings.
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* clock/p_clock.c, console/console.c, startup/bspstart.c: Removed

View File

@@ -860,7 +860,6 @@ rtems_device_driver console_open(
/* Used to track termios private data for callbacks */
extern struct rtems_termios_tty *ttyp[];
rtems_libio_open_close_args_t *args = arg;
#endif
static const rtems_termios_callbacks sccEPPCBugCallbacks = {
NULL, /* firstOpen */
NULL, /* lastClose */
@@ -870,6 +869,7 @@ rtems_device_driver console_open(
NULL, /* startRemoteTx */
0 /* outputUsesInterrupts */
};
#endif
static const rtems_termios_callbacks pollCallbacks = {
NULL, /* firstOpen */
NULL, /* lastClose */

View File

@@ -39,6 +39,10 @@
#include <netinet/if_ether.h>
#include <bsp/irq.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
/*
* Number of interfaces supported by this driver
*/
@@ -756,7 +760,7 @@ scc_rxDaemon (void *arg)
/*
* Invalidate the buffer for this descriptor
*/
rtems_cache_invalidate_multiple_data_lines(rxBd->buffer, rxBd->length);
rtems_cache_invalidate_multiple_data_lines((const void *)rxBd->buffer, rxBd->length);
m = sc->rxMbuf[rxBdIndex];
m->m_len = m->m_pkthdr.len = rxBd->length -
@@ -892,7 +896,7 @@ fec_rxDaemon (void *arg)
/*
* Invalidate the buffer for this descriptor
*/
rtems_cache_invalidate_multiple_data_lines(rxBd->buffer, rxBd->length);
rtems_cache_invalidate_multiple_data_lines((const void *)rxBd->buffer, rxBd->length);
m = sc->rxMbuf[rxBdIndex];
m->m_len = m->m_pkthdr.len = rxBd->length -
@@ -1032,7 +1036,7 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
/*
* Flush the buffer for this descriptor
*/
rtems_cache_flush_multiple_data_lines(txBd->buffer, txBd->length);
rtems_cache_flush_multiple_data_lines((const void *)txBd->buffer, txBd->length);
sc->txMbuf[sc->txBdHead] = m;
nAdded++;
@@ -1547,8 +1551,10 @@ rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config)
int mtu;
int unitNumber;
char *unitName;
#if NVRAM_CONFIGURE == 1
char *pAddr;
unsigned long addr;
#endif
/*
* Parse driver name