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[] = "??";
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to