Module Name:    src
Committed By:   lukem
Date:           Sun Apr 12 13:01:55 UTC 2009

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

Log Message:
fix -Wcast-qual issues


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.bin/lam/lam.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/lam/lam.c
diff -u src/usr.bin/lam/lam.c:1.6 src/usr.bin/lam/lam.c:1.7
--- src/usr.bin/lam/lam.c:1.6	Mon Jul 21 14:19:23 2008
+++ src/usr.bin/lam/lam.c	Sun Apr 12 13:01:55 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: lam.c,v 1.6 2008/07/21 14:19:23 lukem Exp $	*/
+/*	$NetBSD: lam.c,v 1.7 2009/04/12 13:01:55 lukem Exp $	*/
 
 /*-
  * Copyright (c) 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)lam.c	8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: lam.c,v 1.6 2008/07/21 14:19:23 lukem Exp $");
+__RCSID("$NetBSD: lam.c,v 1.7 2009/04/12 13:01:55 lukem Exp $");
 #endif /* not lint */
 
 /*
@@ -61,8 +61,8 @@
 	short	eof;		/* eof flag */
 	short	pad;		/* pad flag for missing columns */
 	char	eol;		/* end of line character */
-	char	*sepstring;	/* string to print before each line */
-	char	*format;	/* printf(3) style string spec. */
+	const char *sepstring;	/* string to print before each line */
+	const char *format;	/* printf(3) style string spec. */
 }	input[MAXOFILES];
 
 int	morefiles;		/* set by getargs(), changed by gatherline() */
@@ -70,7 +70,7 @@
 char	line[BIGBUFSIZ];
 char	*linep;
 
-void	 error __P((char *, char *));
+void	 error __P((const char *, const char *));
 char	*gatherline __P((struct openfile *));
 void	 getargs __P((char *[]));
 int	 main __P((int, char **));
@@ -223,8 +223,7 @@
 }
 
 void
-error(msg, s)
-	char *msg, *s;
+error(const char *msg, const char *s)
 {
 	warnx(msg, s);
 	fprintf(stderr,

Reply via email to