aboutsummaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/msh.c')
-rw-r--r--shell/msh.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/shell/msh.c b/shell/msh.c
index effdc0107..f1b3f0525 100644
--- a/shell/msh.c
+++ b/shell/msh.c
@@ -280,7 +280,7 @@ struct brkcon {
280 * -x: trace 280 * -x: trace
281 * -u: unset variables net diagnostic 281 * -u: unset variables net diagnostic
282 */ 282 */
283static char flags['z' - 'a' + 1]; 283static char flags['z' - 'a' + 1] ALIGN1;
284/* this looks weird, but is OK ... we index FLAG with 'a'...'z' */ 284/* this looks weird, but is OK ... we index FLAG with 'a'...'z' */
285#define FLAG (flags - 'a') 285#define FLAG (flags - 'a')
286 286
@@ -577,7 +577,7 @@ struct here {
577 struct here *h_next; 577 struct here *h_next;
578}; 578};
579 579
580static const char * const signame[] = { 580static const char *const signame[] = {
581 "Signal 0", 581 "Signal 0",
582 "Hangup", 582 "Hangup",
583 NULL, /* interrupt */ 583 NULL, /* interrupt */
@@ -593,11 +593,10 @@ static const char * const signame[] = {
593 "SIGUSR2", 593 "SIGUSR2",
594 NULL, /* broken pipe */ 594 NULL, /* broken pipe */
595 "Alarm clock", 595 "Alarm clock",
596 "Terminated", 596 "Terminated"
597}; 597};
598 598
599 599
600
601struct res { 600struct res {
602 const char *r_name; 601 const char *r_name;
603 int r_val; 602 int r_val;
@@ -4209,7 +4208,7 @@ static char *unquote(char *as)
4209#define NDENT ((BLKSIZ+sizeof(struct dirent)-1)/sizeof(struct dirent)) 4208#define NDENT ((BLKSIZ+sizeof(struct dirent)-1)/sizeof(struct dirent))
4210 4209
4211static struct wdblock *cl, *nl; 4210static struct wdblock *cl, *nl;
4212static char spcl[] = "[?*"; 4211static const char spcl[] ALIGN1= "[?*";
4213 4212
4214static struct wdblock *glob(char *cp, struct wdblock *wb) 4213static struct wdblock *glob(char *cp, struct wdblock *wb)
4215{ 4214{