sh: Add some const keywords.
This commit is contained in:
parent
a889b18c52
commit
5545fadd84
@ -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;
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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[] = "??";
|
||||
|
Loading…
Reference in New Issue
Block a user