Browse Source

fix gcc 4.2.1 warning: discards qualifiers from pointer target type

tags/v0.9.3
Holger Lubitz 17 years ago
parent
commit
857c5db4dd
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      src/drivers/net/via-velocity.c

+ 4
- 4
src/drivers/net/via-velocity.c View File

@@ -259,7 +259,7 @@ static struct velocity_info_tbl chip_info_table[] = {
259 259
  */
260 260
 
261 261
 static void velocity_set_int_opt(int *opt, int val, int min, int max,
262
-				 int def, char *name, char *devname)
262
+				 int def, char *name, const char *devname)
263 263
 {
264 264
 	if (val == -1) {
265 265
 		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,
292 292
  */
293 293
 
294 294
 static void velocity_set_bool_opt(u32 * opt, int val, int def, u32 flag,
295
-				  char *name, char *devname)
295
+				  char *name, const char *devname)
296 296
 {
297 297
 	(*opt) &= (~flag);
298 298
 	if (val == -1) {
@@ -322,7 +322,7 @@ static void velocity_set_bool_opt(u32 * opt, int val, int def, u32 flag,
322 322
  */
323 323
 
324 324
 static void velocity_get_options(struct velocity_opt *opts, int index,
325
-				 char *devname)
325
+				 const char *devname)
326 326
 {
327 327
 
328 328
 	/* FIXME Do the options need to be configurable */
@@ -708,7 +708,7 @@ static int velocity_probe( struct nic *nic, struct pci_device *pci)
708 708
 	DBG ( "%s: %s at ioaddr %#hX\n", pci->driver_name, eth_ntoa ( nic->node_addr ),
709 709
 	      (unsigned int) BASE );
710 710
 
711
-	velocity_get_options(&vptr->options, 0, (char *) pci->driver_name);
711
+	velocity_get_options(&vptr->options, 0, pci->driver_name);
712 712
 
713 713
 	/* 
714 714
 	 *      Mask out the options cannot be set to the chip

Loading…
Cancel
Save