diff options
Diffstat (limited to 'shell/msh_function.patch')
| -rw-r--r-- | shell/msh_function.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shell/msh_function.patch b/shell/msh_function.patch index b02b291e1..270b9eeff 100644 --- a/shell/msh_function.patch +++ b/shell/msh_function.patch | |||
| @@ -216,7 +216,7 @@ diff -d -urpN busybox.7/shell/msh.c busybox.8/shell/msh.c | |||
| 216 | + p->name = xstrdup(yylval.cp); | 216 | + p->name = xstrdup(yylval.cp); |
| 217 | + //fprintf(stderr, "register function,%d,%d,%s\n", begin, end, p->name); | 217 | + //fprintf(stderr, "register function,%d,%d,%s\n", begin, end, p->name); |
| 218 | + KSDBG_PRINT_FUNCNAME; | 218 | + KSDBG_PRINT_FUNCNAME; |
| 219 | + /* io stream */ | 219 | + /* io stream */ |
| 220 | + p->begin_addr = begin; | 220 | + p->begin_addr = begin; |
| 221 | + p->end_addr = end; | 221 | + p->end_addr = end; |
| 222 | +} | 222 | +} |
| @@ -251,7 +251,7 @@ diff -d -urpN busybox.7/shell/msh.c busybox.8/shell/msh.c | |||
| 251 | + frame[cur_frame].argv = dolv; | 251 | + frame[cur_frame].argv = dolv; |
| 252 | + | 252 | + |
| 253 | + cur_frame++; | 253 | + cur_frame++; |
| 254 | + /* do some argment parse and set arguments */ | 254 | + /* do some argument parse and set arguments */ |
| 255 | + temp_argv = xmalloc(sizeof(char *)); | 255 | + temp_argv = xmalloc(sizeof(char *)); |
| 256 | + temp_argv[0] = xstrdup(f->name); | 256 | + temp_argv[0] = xstrdup(f->name); |
| 257 | + temp_argc = 0; | 257 | + temp_argc = 0; |
| @@ -273,7 +273,7 @@ diff -d -urpN busybox.7/shell/msh.c busybox.8/shell/msh.c | |||
| 273 | + } | 273 | + } |
| 274 | + /* | 274 | + /* |
| 275 | + global_env.iop->argp->afpos--; | 275 | + global_env.iop->argp->afpos--; |
| 276 | + global_env.iop->argp->afbuf->bufp--; | 276 | + global_env.iop->argp->afbuf->bufp--; |
| 277 | + */ | 277 | + */ |
| 278 | + dolc = temp_argc; | 278 | + dolc = temp_argc; |
| 279 | + dolv = temp_argv; | 279 | + dolv = temp_argv; |
