Date: Sun, 14 Sep 2014 15:59:15 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r271590 - head/bin/sh Message-ID: <201409141559.s8EFxFYY081038@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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[] = "??";
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201409141559.s8EFxFYY081038>