summaryrefslogtreecommitdiff
path: root/shell/msh.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /shell/msh.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
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{