From owner-svn-src-head@FreeBSD.ORG Fri Apr 25 04:01:26 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 34E6762B; Fri, 25 Apr 2014 04:01:26 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 228BE1771; Fri, 25 Apr 2014 04:01:26 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s3P41Pvx009611; Fri, 25 Apr 2014 04:01:25 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s3P41Pw7009609; Fri, 25 Apr 2014 04:01:25 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201404250401.s3P41Pw7009609@svn.freebsd.org> From: Xin LI Date: Fri, 25 Apr 2014 04:01:25 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r264910 - head/usr.bin/hexdump X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2014 04:01:26 -0000 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); }