Constify.

This commit is contained in:
delphij 2014-04-25 04:01:25 +00:00
parent 775607b278
commit 40e8f261db
2 changed files with 6 additions and 6 deletions

View File

@ -82,9 +82,9 @@ enum _vflag { ALL, DUP, FIRST, WAIT }; /* -v values */
extern enum _vflag vflag;
void add(const char *);
void addfile(char *);
void badcnt(char *);
void badconv(char *);
void addfile(const char *);
void badcnt(const char *);
void badconv(const char *);
void badfmt(const char *);
void badsfmt(void);
void bpad(PR *);

View File

@ -48,7 +48,7 @@ __FBSDID("$FreeBSD$");
FU *endfu; /* format at end-of-data */
void
addfile(char *name)
addfile(const char *name)
{
unsigned char *p;
FILE *fp;
@ -491,7 +491,7 @@ escape(char *p1)
}
void
badcnt(char *s)
badcnt(const char *s)
{
errx(1, "%s: bad byte count", s);
}
@ -509,7 +509,7 @@ badfmt(const char *fmt)
}
void
badconv(char *ch)
badconv(const char *ch)
{
errx(1, "%%%s: bad conversion character", ch);
}