Debug compile fix
PATCH 1/2 Debug compile fix
No point in tracing a no longer undeclared "ps->cmd", fixes:jobs.c: In function ‘commandtext’:
jobs.c:1192: error: ‘ps’ undeclared (first use in this function) jobs.c:1192: error: (Each undeclared identifier is reported only once jobs.c:1192: error: for each function it appears in.)
--- src/jobs.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
src/jobs.c +1 -2
@@ -1189,8 +1189,7 @@ commandtext(union node *n)STARTSTACKSTR (cmdnextc);cmdtxt (n); name =stackblock (); -TRACE (("commandtext: name %p, end %p\n\t\"%s\"\n" , - name, cmdnextc, ps->cmd)); +TRACE (("commandtext: name %p, end %p\n" , name, cmdnextc));return savestr (name); }
Signature · 1 line
1.7.1
PATCH 2/2 clean up myhistedit.h
fixes debug compilation of klibc:
In file included from usr/dash/eval.c:64:usr/dash/myhistedit.h:34:22: error: histedit.h: No such file or directory
In file included from usr/dash/eval.c:64:usr/dash/myhistedit.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token usr/dash/myhistedit.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__
as none of the History or EditLine seem to have an usage, removed them.
--- src/myhistedit.h | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-)
src/myhistedit.h +0 -1
@@ -31,10 +31,6 @@* @(#)myhistedit.h 8.2 (Berkeley) 5/4/95 */ -#include <histedit.h>
Re: [PATCH 2/2] [EVAL] clean up myhistedit.h
Quoted 10 lines · maximilian attems
fixes debug compilation of klibc:
In file included fromusr/dash/eval.c:64:usr/dash/myhistedit.h:34:22: error:histedit.h: No such file or directory
In file included fromusr/dash/eval.c:64:usr/dash/myhistedit.h:36: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ tokenusr/dash/myhistedit.h:37: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__as none of the History or EditLine seem to have an usage, removed them.
Signed-off-by maximilian attems <[email protected]>
Actually this shouldn't happen. myhistedit.h is only included when built without -DSMALL, which means that libedit is present.
Cheers,
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Quoted 7 lines · maximilian attems
No point in tracing a no longer undeclared "
ps->cmd", fixes:jobs.c: In function ‘commandtext’:
jobs.c:1192: error: ‘ps’ undeclared (first use in this function) jobs.c:1192: error: (Each undeclared identifier is reported only once jobs.c:1192: error: for each function it appears in.)Signed-off-by maximilian attems <[email protected]>
Patch applied. Thanks!
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt