sh: Add some const keywords.

This commit is contained in:
Jilles Tjoelker 2014-09-14 15:59:15 +00:00
parent a889b18c52
commit 5545fadd84
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=271590
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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);

View File

@ -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[] = "??";