diff options
| author | Keith Packard <keithp@keithp.com> | 2012-07-11 13:47:25 -0700 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2012-07-11 13:47:25 -0700 | 
| commit | 726f47c8a07f060aed930e1d102a1e8b5a5c7aed (patch) | |
| tree | 1c0f7893b4d6c9bddff74bbd937cf531f44a8b21 /src | |
| parent | 7be98836e69a222b2f9f4baacddcf12d168e2207 (diff) | |
altos: remove optimization for 'help' that confuses cc1111 compiler
The cc1111 compiler gets this very wrong and prints piles of garbage
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/ao_cmd.c | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/src/core/ao_cmd.c b/src/core/ao_cmd.c index 05dbfb51..1814cecf 100644 --- a/src/core/ao_cmd.c +++ b/src/core/ao_cmd.c @@ -278,8 +278,10 @@ help(void)  	for (cmds = 0; cmds < ao_ncmds; cmds++) {  		cs = ao_cmds[cmds]; -		for (cmd = 0; (h = cs[cmd].help); cmd++) +		for (cmd = 0; cs[cmd].func; cmd++) { +			h = cs[cmd].help;  			printf("%-45s %s\n", h, h + 1 + strlen(h)); +		}  	}  } | 
