aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-17 09:48:57 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-10-17 09:48:57 +0000
commit485d7cbdf1e6c09cdd40d66edf6e4098cc0670be (patch)
tree03ad675eeb819364d26be61d9083a764c41c555f /shell/msh.c
parenta4d45d423fe7f80e61bae14323254f73ac9888a0 (diff)
downloadbusybox-w32-485d7cbdf1e6c09cdd40d66edf6e4098cc0670be.tar.gz
busybox-w32-485d7cbdf1e6c09cdd40d66edf6e4098cc0670be.tar.bz2
busybox-w32-485d7cbdf1e6c09cdd40d66edf6e4098cc0670be.zip
data --> text
Diffstat (limited to '')
-rw-r--r--shell/msh.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/shell/msh.c b/shell/msh.c
index 30ebc7a3a..9e9a10b9f 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -514,7 +514,7 @@ static int eofc(void);
514static int readc(void); 514static int readc(void);
515static void unget(int c); 515static void unget(int c);
516static void ioecho(int c); 516static void ioecho(int c);
517static void prs(char *s); 517static void prs(const char *s);
518static void prn(unsigned u); 518static void prn(unsigned u);
519static void closef(int i); 519static void closef(int i);
520static void closeall(void); 520static void closeall(void);
@@ -622,7 +622,7 @@ struct here {
622 struct here *h_next; 622 struct here *h_next;
623}; 623};
624 624
625static char *signame[] = { 625static const char * const signame[] = {
626 "Signal 0", 626 "Signal 0",
627 "Hangup", 627 "Hangup",
628 (char *) NULL, /* interrupt */ 628 (char *) NULL, /* interrupt */
@@ -644,10 +644,10 @@ static char *signame[] = {
644#define NSIGNAL (sizeof(signame)/sizeof(signame[0])) 644#define NSIGNAL (sizeof(signame)/sizeof(signame[0]))
645 645
646struct res { 646struct res {
647 char *r_name; 647 const char *r_name;
648 int r_val; 648 int r_val;
649}; 649};
650static struct res restab[] = { 650static const struct res restab[] = {
651 {"for", FOR}, 651 {"for", FOR},
652 {"case", CASE}, 652 {"case", CASE},
653 {"esac", ESAC}, 653 {"esac", ESAC},
@@ -709,7 +709,7 @@ static char **dolv;
709static int dolc; 709static int dolc;
710static int exstat; 710static int exstat;
711static char gflg; 711static char gflg;
712static int interactive = 0; /* Is this an interactive shell */ 712static int interactive; /* Is this an interactive shell */
713static int execflg; 713static int execflg;
714static int multiline; /* \n changed to ; */ 714static int multiline; /* \n changed to ; */
715static struct op *outtree; /* result from parser */ 715static struct op *outtree; /* result from parser */
@@ -2245,7 +2245,7 @@ char **wp;
2245static int rlookup(n) 2245static int rlookup(n)
2246REGISTER char *n; 2246REGISTER char *n;
2247{ 2247{
2248 REGISTER struct res *rp; 2248 REGISTER const struct res *rp;
2249 2249
2250 DBGPRINTF7(("RLOOKUP: enter, n is %s\n", n)); 2250 DBGPRINTF7(("RLOOKUP: enter, n is %s\n", n));
2251 2251
@@ -5166,7 +5166,7 @@ REGISTER struct ioarg *ap;
5166} 5166}
5167 5167
5168static void prs(s) 5168static void prs(s)
5169REGISTER char *s; 5169REGISTER const char *s;
5170{ 5170{
5171 if (*s) 5171 if (*s)
5172 write(2, s, strlen(s)); 5172 write(2, s, strlen(s));