summaryrefslogtreecommitdiffstats
path: root/usr.bin/hexdump
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2014-04-25 04:01:25 +0000
committerdelphij <delphij@FreeBSD.org>2014-04-25 04:01:25 +0000
commit40e8f261dbca0a70bce049362abefd8e28fff8bf (patch)
tree0ce6a927f1aabe8462b10dc1e0e97ebb1dcdfa89 /usr.bin/hexdump
parent775607b278709d553717f57e853b7b209b31ae7d (diff)
downloadFreeBSD-src-40e8f261dbca0a70bce049362abefd8e28fff8bf.zip
FreeBSD-src-40e8f261dbca0a70bce049362abefd8e28fff8bf.tar.gz
Constify.
Diffstat (limited to 'usr.bin/hexdump')
-rw-r--r--usr.bin/hexdump/hexdump.h6
-rw-r--r--usr.bin/hexdump/parse.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/hexdump/hexdump.h b/usr.bin/hexdump/hexdump.h
index be85bd9..e34d3a0 100644
--- a/usr.bin/hexdump/hexdump.h
+++ b/usr.bin/hexdump/hexdump.h
@@ -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 *);
diff --git a/usr.bin/hexdump/parse.c b/usr.bin/hexdump/parse.c
index 10db904..1e06120 100644
--- a/usr.bin/hexdump/parse.c
+++ b/usr.bin/hexdump/parse.c
@@ -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);
}
OpenPOWER on IntegriCloud