summaryrefslogtreecommitdiff
path: root/usr.bin/lam
diff options
context:
space:
mode:
authorlukem <lukem@NetBSD.org>2009-04-12 13:01:55 +0000
committerlukem <lukem@NetBSD.org>2009-04-12 13:01:55 +0000
commit4f6c9fecb116b567134f0dc2ffad18e8b545a821 (patch)
treebfd233511adf02a577fe02a2c0e06455f488dede /usr.bin/lam
parente72a1356ea71415759751c60982d4bbfe56e4787 (diff)
fix -Wcast-qual issues
Diffstat (limited to 'usr.bin/lam')
-rw-r--r--usr.bin/lam/lam.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/usr.bin/lam/lam.c b/usr.bin/lam/lam.c
index 696c1fe2641..802db86963e 100644
--- a/usr.bin/lam/lam.c
+++ b/usr.bin/lam/lam.c
@@ -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 @@ __COPYRIGHT("@(#) Copyright (c) 1993\
#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 @@ struct openfile { /* open file structure */
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 @@ int nofinalnl; /* normally append \n to each output line */
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 @@ gatherline(ip)
}
void
-error(msg, s)
- char *msg, *s;
+error(const char *msg, const char *s)
{
warnx(msg, s);
fprintf(stderr,