summaryrefslogtreecommitdiffstats
path: root/src/drivers/net
diff options
context:
space:
mode:
authorHolger Lubitz2007-07-31 18:43:09 +0200
committerMichael Brown2007-08-02 02:56:57 +0200
commit857c5db4dd7a87d3be40ad80c625896feca2e68a (patch)
tree3ea5bd58ba957c2a6dcd922e4e6be2ea0791dd03 /src/drivers/net
parentfix gcc 4.2.1 warning: initialized field overwritten (diff)
downloadipxe-857c5db4dd7a87d3be40ad80c625896feca2e68a.tar.gz
ipxe-857c5db4dd7a87d3be40ad80c625896feca2e68a.tar.xz
ipxe-857c5db4dd7a87d3be40ad80c625896feca2e68a.zip
fix gcc 4.2.1 warning: discards qualifiers from pointer target type
Diffstat (limited to 'src/drivers/net')
-rw-r--r--src/drivers/net/via-velocity.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/drivers/net/via-velocity.c b/src/drivers/net/via-velocity.c
index bb934bbe..428f609c 100644
--- a/src/drivers/net/via-velocity.c
+++ b/src/drivers/net/via-velocity.c
@@ -259,7 +259,7 @@ static struct velocity_info_tbl chip_info_table[] = {
*/
static void velocity_set_int_opt(int *opt, int val, int min, int max,
- int def, char *name, char *devname)
+ int def, char *name, const char *devname)
{
if (val == -1) {
printf("%s: set value of parameter %s to %d\n",
@@ -292,7 +292,7 @@ static void velocity_set_int_opt(int *opt, int val, int min, int max,
*/
static void velocity_set_bool_opt(u32 * opt, int val, int def, u32 flag,
- char *name, char *devname)
+ char *name, const char *devname)
{
(*opt) &= (~flag);
if (val == -1) {
@@ -322,7 +322,7 @@ static void velocity_set_bool_opt(u32 * opt, int val, int def, u32 flag,
*/
static void velocity_get_options(struct velocity_opt *opts, int index,
- char *devname)
+ const char *devname)
{
/* FIXME Do the options need to be configurable */
@@ -708,7 +708,7 @@ static int velocity_probe( struct nic *nic, struct pci_device *pci)
DBG ( "%s: %s at ioaddr %#hX\n", pci->driver_name, eth_ntoa ( nic->node_addr ),
(unsigned int) BASE );
- velocity_get_options(&vptr->options, 0, (char *) pci->driver_name);
+ velocity_get_options(&vptr->options, 0, pci->driver_name);
/*
* Mask out the options cannot be set to the chip