sh: fix debug build
Approved by: jilles
This commit is contained in:
parent
b77f5f5553
commit
1a4e959eb3
@ -73,7 +73,7 @@ static void
|
||||
shtree(union node *n, int ind, char *pfx, FILE *fp)
|
||||
{
|
||||
struct nodelist *lp;
|
||||
char *s;
|
||||
const char *s;
|
||||
|
||||
if (n == NULL)
|
||||
return;
|
||||
@ -125,7 +125,7 @@ shcmd(union node *cmd, FILE *fp)
|
||||
{
|
||||
union node *np;
|
||||
int first;
|
||||
char *s;
|
||||
const char *s;
|
||||
int dftfd;
|
||||
|
||||
first = 1;
|
||||
@ -274,8 +274,7 @@ indent(int amount, char *pfx, FILE *fp)
|
||||
*/
|
||||
|
||||
|
||||
FILE *tracefile;
|
||||
|
||||
static FILE *tracefile;
|
||||
#if DEBUG >= 2
|
||||
int debug = 1;
|
||||
#else
|
||||
|
@ -39,4 +39,6 @@ void trargs(char **);
|
||||
void trputc(int);
|
||||
void trputs(const char *);
|
||||
void opentrace(void);
|
||||
|
||||
extern int debug;
|
||||
#endif
|
||||
|
@ -274,12 +274,8 @@ setsignal(int signo)
|
||||
break;
|
||||
case SIGQUIT:
|
||||
#ifdef DEBUG
|
||||
{
|
||||
extern int debug;
|
||||
|
||||
if (debug)
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
action = S_CATCH;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user