add const qualifier to get rid of compilation warnings.
This commit is contained in:
parent
991bf8b09e
commit
db2b1de8d3
@ -115,7 +115,7 @@ open_mem(block, length, file)
|
||||
|
||||
void
|
||||
out1str(p)
|
||||
char *p;
|
||||
const char *p;
|
||||
{
|
||||
outstr(p, out1);
|
||||
}
|
||||
@ -123,7 +123,7 @@ out1str(p)
|
||||
|
||||
void
|
||||
out2str(p)
|
||||
char *p;
|
||||
const char *p;
|
||||
{
|
||||
outstr(p, out2);
|
||||
}
|
||||
@ -131,7 +131,7 @@ out2str(p)
|
||||
|
||||
void
|
||||
outstr(p, file)
|
||||
register char *p;
|
||||
const register char *p;
|
||||
register struct output *file;
|
||||
{
|
||||
while (*p)
|
||||
|
@ -55,9 +55,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…
x
Reference in New Issue
Block a user