svn commit: r264910 - head/usr.bin/hexdump

From: Xin LI <delphij_at_FreeBSD.org>
Date: Fri, 25 Apr 2014 04:01:25 +0000 (UTC)
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)
_at__at_ -82,9 +82,9 _at__at_ 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)
_at__at_ -48,7 +48,7 _at__at_ __FBSDID("$FreeBSD$");
 FU *endfu;					/* format at end-of-data */
 
 void
-addfile(char *name)
+addfile(const char *name)
 {
 	unsigned char *p;
 	FILE *fp;
_at__at_ -491,7 +491,7 _at__at_ escape(char *p1)
 }
 
 void
-badcnt(char *s)
+badcnt(const char *s)
 {
 	errx(1, "%s: bad byte count", s);
 }
_at__at_ -509,7 +509,7 _at__at_ badfmt(const char *fmt)
 }
 
 void
-badconv(char *ch)
+badconv(const char *ch)
 {
 	errx(1, "%%%s: bad conversion character", ch);
 }
Received on Fri Apr 25 2014 - 04:01:26 UTC