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

Loading…
Cancel
Save