From owner-svn-src-head@FreeBSD.ORG Sun Sep 14 15:59:16 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2A461DF7; Sun, 14 Sep 2014 15:59:16 +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 132566CB; Sun, 14 Sep 2014 15:59:16 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id s8EFxFuc081041; Sun, 14 Sep 2014 15:59:15 GMT (envelope-from jilles@FreeBSD.org) Received: (from jilles@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id s8EFxFYY081038; Sun, 14 Sep 2014 15:59:15 GMT (envelope-from jilles@FreeBSD.org) Message-Id: <201409141559.s8EFxFYY081038@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jilles set sender to jilles@FreeBSD.org using -f From: Jilles Tjoelker Date: Sun, 14 Sep 2014 15:59:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271590 - head/bin/sh 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.18-1 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: Sun, 14 Sep 2014 15:59:16 -0000 Author: jilles Date: Sun Sep 14 15:59:15 2014 New Revision: 271590 URL: http://svnweb.freebsd.org/changeset/base/271590 Log: sh: Add some const keywords. Modified: head/bin/sh/input.c head/bin/sh/input.h head/bin/sh/parser.c Modified: head/bin/sh/input.c ============================================================================== --- head/bin/sh/input.c Sun Sep 14 12:23:00 2014 (r271589) +++ head/bin/sh/input.c Sun Sep 14 15:59:15 2014 (r271590) @@ -338,7 +338,7 @@ pungetc(void) * We handle aliases this way. */ void -pushstring(char *s, int len, struct alias *ap) +pushstring(const char *s, int len, struct alias *ap) { struct strpush *sp; Modified: head/bin/sh/input.h ============================================================================== --- head/bin/sh/input.h Sun Sep 14 12:23:00 2014 (r271589) +++ head/bin/sh/input.h Sun Sep 14 15:59:15 2014 (r271590) @@ -53,7 +53,7 @@ int pgetc(void); int preadbuffer(void); int preadateof(void); void pungetc(void); -void pushstring(char *, int, struct alias *); +void pushstring(const char *, int, struct alias *); void setinputfile(const char *, int); void setinputfd(int, int); void setinputstring(const char *, int); Modified: head/bin/sh/parser.c ============================================================================== --- head/bin/sh/parser.c Sun Sep 14 12:23:00 2014 (r271589) +++ head/bin/sh/parser.c Sun Sep 14 15:59:15 2014 (r271590) @@ -1915,7 +1915,7 @@ char * getprompt(void *unused __unused) { static char ps[PROMPTLEN]; - char *fmt; + const char *fmt; const char *pwd; int i, trim; static char internal_error[] = "??";