diff options
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 |
commit | 485d7cbdf1e6c09cdd40d66edf6e4098cc0670be (patch) | |
tree | 03ad675eeb819364d26be61d9083a764c41c555f /shell/msh.c | |
parent | a4d45d423fe7f80e61bae14323254f73ac9888a0 (diff) | |
download | busybox-w32-485d7cbdf1e6c09cdd40d66edf6e4098cc0670be.tar.gz busybox-w32-485d7cbdf1e6c09cdd40d66edf6e4098cc0670be.tar.bz2 busybox-w32-485d7cbdf1e6c09cdd40d66edf6e4098cc0670be.zip |
data --> text
Diffstat (limited to '')
-rw-r--r-- | shell/msh.c | 14 |
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); | |||
514 | static int readc(void); | 514 | static int readc(void); |
515 | static void unget(int c); | 515 | static void unget(int c); |
516 | static void ioecho(int c); | 516 | static void ioecho(int c); |
517 | static void prs(char *s); | 517 | static void prs(const char *s); |
518 | static void prn(unsigned u); | 518 | static void prn(unsigned u); |
519 | static void closef(int i); | 519 | static void closef(int i); |
520 | static void closeall(void); | 520 | static void closeall(void); |
@@ -622,7 +622,7 @@ struct here { | |||
622 | struct here *h_next; | 622 | struct here *h_next; |
623 | }; | 623 | }; |
624 | 624 | ||
625 | static char *signame[] = { | 625 | static 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 | ||
646 | struct res { | 646 | struct res { |
647 | char *r_name; | 647 | const char *r_name; |
648 | int r_val; | 648 | int r_val; |
649 | }; | 649 | }; |
650 | static struct res restab[] = { | 650 | static 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; | |||
709 | static int dolc; | 709 | static int dolc; |
710 | static int exstat; | 710 | static int exstat; |
711 | static char gflg; | 711 | static char gflg; |
712 | static int interactive = 0; /* Is this an interactive shell */ | 712 | static int interactive; /* Is this an interactive shell */ |
713 | static int execflg; | 713 | static int execflg; |
714 | static int multiline; /* \n changed to ; */ | 714 | static int multiline; /* \n changed to ; */ |
715 | static struct op *outtree; /* result from parser */ | 715 | static struct op *outtree; /* result from parser */ |
@@ -2245,7 +2245,7 @@ char **wp; | |||
2245 | static int rlookup(n) | 2245 | static int rlookup(n) |
2246 | REGISTER char *n; | 2246 | REGISTER 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 | ||
5168 | static void prs(s) | 5168 | static void prs(s) |
5169 | REGISTER char *s; | 5169 | REGISTER const char *s; |
5170 | { | 5170 | { |
5171 | if (*s) | 5171 | if (*s) |
5172 | write(2, s, strlen(s)); | 5172 | write(2, s, strlen(s)); |