Added const qualifier to char * function arguments to eliminate
compiler warning.
This commit is contained in:
parent
5e5b91a3c5
commit
81d81cf9a0
|
@ -36,7 +36,7 @@
|
|||
|
||||
#ifndef lint
|
||||
/*static char sccsid[] = "from: @(#)output.c 5.1 (Berkeley) 3/7/91";*/
|
||||
static char rcsid[] = "$Id: output.c,v 1.5 1993/09/05 17:32:08 mycroft Exp $";
|
||||
static char rcsid[] = "$Id: output.c,v 1.6 1994/05/04 23:45:04 jtc Exp $";
|
||||
#endif /* not lint */
|
||||
|
||||
/*
|
||||
|
@ -116,7 +116,7 @@ open_mem(block, length, file)
|
|||
|
||||
void
|
||||
out1str(p)
|
||||
char *p;
|
||||
const char *p;
|
||||
{
|
||||
outstr(p, out1);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ out1str(p)
|
|||
|
||||
void
|
||||
out2str(p)
|
||||
char *p;
|
||||
const char *p;
|
||||
{
|
||||
outstr(p, out2);
|
||||
}
|
||||
|
@ -132,7 +132,7 @@ out2str(p)
|
|||
|
||||
void
|
||||
outstr(p, file)
|
||||
register char *p;
|
||||
register const char *p;
|
||||
register struct output *file;
|
||||
{
|
||||
while (*p)
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)output.h 5.1 (Berkeley) 3/7/91
|
||||
* $Id: output.h,v 1.4 1993/08/01 18:58:38 mycroft Exp $
|
||||
* $Id: output.h,v 1.5 1994/05/04 23:45:06 jtc Exp $
|
||||
*/
|
||||
|
||||
#ifndef OUTPUT_INCL
|
||||
|
@ -56,9 +56,9 @@ extern struct output *out2;
|
|||
|
||||
|
||||
#ifdef __STDC__
|
||||
void outstr(char *, struct output *);
|
||||
void out1str(char *);
|
||||
void out2str(char *);
|
||||
void outstr(const char *, struct output *);
|
||||
void out1str(const char *);
|
||||
void out2str(const char *);
|
||||
void outfmt(struct output *, char *, ...);
|
||||
void out1fmt(char *, ...);
|
||||
void fmtstr(char *, int, char *, ...);
|
||||
|
|
Loading…
Reference in New Issue