From owner-svn-src-all@freebsd.org Fri Dec 8 19:57:13 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 15CA2E8D780; Fri, 8 Dec 2017 19:57:13 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::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 BC43C1930; Fri, 8 Dec 2017 19:57:12 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id vB8JvB6Q094376; Fri, 8 Dec 2017 19:57:11 GMT (envelope-from imp@FreeBSD.org) Received: (from imp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id vB8JvBua094373; Fri, 8 Dec 2017 19:57:11 GMT (envelope-from imp@FreeBSD.org) Message-Id: <201712081957.vB8JvBua094373@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: imp set sender to imp@FreeBSD.org using -f From: Warner Losh Date: Fri, 8 Dec 2017 19:57:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326711 - head/stand/common X-SVN-Group: head X-SVN-Commit-Author: imp X-SVN-Commit-Paths: head/stand/common X-SVN-Commit-Revision: 326711 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Dec 2017 19:57:13 -0000 Author: imp Date: Fri Dec 8 19:57:11 2017 New Revision: 326711 URL: https://svnweb.freebsd.org/changeset/base/326711 Log: Const poison a couple of interfaces. Obtained from: lua boot project Sponsored by: Netflix Modified: head/stand/common/bootstrap.h head/stand/common/interp_backslash.c head/stand/common/interp_parse.c Modified: head/stand/common/bootstrap.h ============================================================================== --- head/stand/common/bootstrap.h Fri Dec 8 19:57:06 2017 (r326710) +++ head/stand/common/bootstrap.h Fri Dec 8 19:57:11 2017 (r326711) @@ -49,10 +49,10 @@ void interact(const char *rc); int include(const char *filename); /* interp_backslash.c */ -char *backslash(char *str); +char *backslash(const char *str); /* interp_parse.c */ -int parse(int *argc, char ***argv, char *str); +int parse(int *argc, char ***argv, const char *str); /* interp_forth.c */ void bf_init(const char *rc); Modified: head/stand/common/interp_backslash.c ============================================================================== --- head/stand/common/interp_backslash.c Fri Dec 8 19:57:06 2017 (r326710) +++ head/stand/common/interp_backslash.c Fri Dec 8 19:57:11 2017 (r326711) @@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$"); * processing" done on it. Original can be free'd if desired. */ char * -backslash(char *str) +backslash(const char *str) { /* * Remove backslashes from the strings. Turn \040 etc. into a single Modified: head/stand/common/interp_parse.c ============================================================================== --- head/stand/common/interp_parse.c Fri Dec 8 19:57:06 2017 (r326710) +++ head/stand/common/interp_parse.c Fri Dec 8 19:57:11 2017 (r326711) @@ -7,7 +7,7 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * + * * Jordan K. Hubbard * 29 August 1998 * @@ -82,7 +82,7 @@ isdquote(int ch) } int -parse(int *argc, char ***argv, char *str) +parse(int *argc, char ***argv, const char *str) { int ac; char *val, *p, *q, *copy = NULL;