Date: Fri, 25 Apr 2014 04:01:25 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264910 - head/usr.bin/hexdump Message-ID: <201404250401.s3P41Pw7009609@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: delphij Date: Fri Apr 25 04:01:25 2014 New Revision: 264910 URL: http://svnweb.freebsd.org/changeset/base/264910 Log: Constify. Modified: head/usr.bin/hexdump/hexdump.h head/usr.bin/hexdump/parse.c Modified: head/usr.bin/hexdump/hexdump.h ============================================================================== --- head/usr.bin/hexdump/hexdump.h Fri Apr 25 02:29:29 2014 (r264909) +++ head/usr.bin/hexdump/hexdump.h Fri Apr 25 04:01:25 2014 (r264910) @@ -82,9 +82,9 @@ enum _vflag { ALL, DUP, FIRST, WAIT }; / 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 *); Modified: head/usr.bin/hexdump/parse.c ============================================================================== --- head/usr.bin/hexdump/parse.c Fri Apr 25 02:29:29 2014 (r264909) +++ head/usr.bin/hexdump/parse.c Fri Apr 25 04:01:25 2014 (r264910) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404250401.s3P41Pw7009609>