Module Name:    src
Committed By:   lukem
Date:           Sun Apr 12 14:17:25 UTC 2009

Modified Files:
        src/usr.bin/mixerctl: mixerctl.c

Log Message:
fix -Wcast-qual issues


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/mixerctl/mixerctl.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/mixerctl/mixerctl.c
diff -u src/usr.bin/mixerctl/mixerctl.c:1.22 src/usr.bin/mixerctl/mixerctl.c:1.23
--- src/usr.bin/mixerctl/mixerctl.c:1.22	Mon Apr 28 20:24:14 2008
+++ src/usr.bin/mixerctl/mixerctl.c	Sun Apr 12 14:17:25 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: mixerctl.c,v 1.22 2008/04/28 20:24:14 martin Exp $	*/
+/*	$NetBSD: mixerctl.c,v 1.23 2009/04/12 14:17:25 lukem Exp $	*/
 
 /*
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 #include <sys/cdefs.h>
 
 #ifndef lint
-__RCSID("$NetBSD: mixerctl.c,v 1.22 2008/04/28 20:24:14 martin Exp $");
+__RCSID("$NetBSD: mixerctl.c,v 1.23 2009/04/12 14:17:25 lukem Exp $");
 #endif
 
 #include <stdio.h>
@@ -83,7 +83,7 @@
 }
 
 static void
-prfield(struct field *p, char *sep, int prvalset)
+prfield(struct field *p, const char *sep, int prvalset)
 {
 	mixer_ctrl_t *m;
 	int i, n;
@@ -247,7 +247,7 @@
 }
 
 static void
-wrarg(int fd, char *arg, char *sep)
+wrarg(int fd, char *arg, const char *sep)
 {
 	char *q;
 	struct field *p;
@@ -305,7 +305,7 @@
 }
 
 static void
-prarg(int fd, char *arg, char *sep)
+prarg(int fd, char *arg, const char *sep)
 {
 	struct field *p;
 
@@ -321,8 +321,8 @@
 {
 	int fd, i, j, ch, pos;
 	int aflag = 0, wflag = 0;
-	char *file;
-	char *sep = "=";
+	const char *file;
+	const char *sep = "=";
 	mixer_devinfo_t dinfo;
 	int ndev;
 

Reply via email to