Fix -Wcast-qual issues

This commit is contained in:
lukem 2009-04-13 00:37:05 +00:00
parent 4d74937562
commit e1b4957e7f
3 changed files with 16 additions and 16 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: egetopt.c,v 1.7 2003/10/13 07:41:22 agc Exp $ */
/* $NetBSD: egetopt.c,v 1.8 2009/04/13 00:37:05 lukem Exp $ */
/*-
* Copyright (c) 1991 Keith Muller.
@ -38,7 +38,7 @@
#if 0
from: static char sccsid[] = "@(#)egetopt.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: egetopt.c,v 1.7 2003/10/13 07:41:22 agc Exp $");
__RCSID("$NetBSD: egetopt.c,v 1.8 2009/04/13 00:37:05 lukem Exp $");
#endif
#endif /* not lint */
@ -67,7 +67,7 @@ int eoptopt; /* character checked for validity */
char *eoptarg; /* argument associated with option */
#define BADCH (int)'?'
#define EMSG ""
char EMSG[1] = { '\0' };
int
egetopt(nargc, nargv, ostr)

View File

@ -1,4 +1,4 @@
/* $NetBSD: extern.h,v 1.4 2003/10/13 07:41:22 agc Exp $ */
/* $NetBSD: extern.h,v 1.5 2009/04/13 00:37:05 lukem Exp $ */
/*-
* Copyright (c) 1991 Keith Muller.
@ -33,7 +33,7 @@
* SUCH DAMAGE.
*
* from: @(#)extern.h 8.1 (Berkeley) 6/6/93
* $NetBSD: extern.h,v 1.4 2003/10/13 07:41:22 agc Exp $
* $NetBSD: extern.h,v 1.5 2009/04/13 00:37:05 lukem Exp $
*/
extern int eoptind;
@ -47,11 +47,11 @@ int inln __P((FILE *, char *, int, int *, int, int *));
int inskip __P((FILE *, int, int));
void mfail __P((void));
int mulfile __P((int, char **));
FILE *nxtfile __P((int, char **, char **, char *, int));
FILE *nxtfile __P((int, char **, const char **, char *, int));
int onecol __P((int, char **));
int otln __P((char *, int, int *, int *, int));
void pfail __P((void));
int prhead __P((char *, char *, int));
int prhead __P((char *, const char *, int));
int prtail __P((int, int));
int setup __P((int, char **));
void terminate __P((int));

View File

@ -1,4 +1,4 @@
/* $NetBSD: pr.c,v 1.19 2008/07/21 14:19:24 lukem Exp $ */
/* $NetBSD: pr.c,v 1.20 2009/04/13 00:37:05 lukem Exp $ */
/*-
* Copyright (c) 1991 Keith Muller.
@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1993\
#if 0
from: static char sccsid[] = "@(#)pr.c 8.1 (Berkeley) 6/6/93";
#else
__RCSID("$NetBSD: pr.c,v 1.19 2008/07/21 14:19:24 lukem Exp $");
__RCSID("$NetBSD: pr.c,v 1.20 2009/04/13 00:37:05 lukem Exp $");
#endif
#endif /* not lint */
@ -98,7 +98,7 @@ char schar; /* text column separation character */
int sflag; /* -s option for multiple columns */
int nohead; /* do not write head and trailer */
int pgwd; /* page width with multiple col output */
char *timefrmt = TIMEFMT; /* time conversion string */
const char *timefrmt = TIMEFMT; /* time conversion string */
/*
* misc globals
@ -165,7 +165,7 @@ onecol(argc, argv)
char *hbuf = NULL;
char *ohbuf;
FILE *inf = NULL;
char *fname;
const char *fname;
int mor;
int error = 1;
@ -325,7 +325,7 @@ vertcol(argc, argv)
char *buf = NULL;
char *hbuf = NULL;
char *ohbuf;
char *fname;
const char *fname;
FILE *inf = NULL;
int ips = 0;
int cps = 0;
@ -642,7 +642,7 @@ horzcol(argc, argv)
char *buf = NULL;
char *hbuf = NULL;
char *ohbuf;
char *fname;
const char *fname;
FILE *inf = NULL;
int ips = 0;
int cps = 0;
@ -796,7 +796,7 @@ mulfile(argc, argv)
char *buf = NULL;
char *hbuf = NULL;
char *ohbuf;
char *fname;
const char *fname;
int ips = 0;
int cps = 0;
int ops = 0;
@ -1302,7 +1302,7 @@ FILE *
nxtfile(argc, argv, fname, buf, dt)
int argc;
char **argv;
char **fname;
const char **fname;
char *buf;
int dt;
{
@ -1470,7 +1470,7 @@ addnum(buf, wdth, line)
int
prhead(buf, fname, pagcnt)
char *buf;
char *fname;
const char *fname;
int pagcnt;
{
int ips = 0;