remove Ontty flag
i can't figure out why i added it in the first place. it doesn't seem to make any sense ...
This commit is contained in:
parent
6b3b6f12bb
commit
2aae866e80
|
@ -391,7 +391,7 @@ void cram( const char *challenge, const char *user, const char *pass,
|
||||||
#define VERYQUIET 16
|
#define VERYQUIET 16
|
||||||
#define KEEPJOURNAL 32
|
#define KEEPJOURNAL 32
|
||||||
|
|
||||||
extern int DFlags, Ontty;
|
extern int DFlags;
|
||||||
|
|
||||||
void debug( const char *, ... );
|
void debug( const char *, ... );
|
||||||
void debugn( const char *, ... );
|
void debugn( const char *, ... );
|
||||||
|
|
|
@ -228,7 +228,6 @@ main( int argc, char **argv )
|
||||||
fputs( "Fatal: $HOME not set\n", stderr );
|
fputs( "Fatal: $HOME not set\n", stderr );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
Ontty = isatty( 1 ) && isatty( 2 );
|
|
||||||
arc4_init();
|
arc4_init();
|
||||||
|
|
||||||
memset( mvars, 0, sizeof(*mvars) );
|
memset( mvars, 0, sizeof(*mvars) );
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
int DFlags, Ontty;
|
int DFlags;
|
||||||
static int need_nl;
|
static int need_nl;
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -67,7 +67,7 @@ debugn( const char *msg, ... )
|
||||||
vprintf( msg, va );
|
vprintf( msg, va );
|
||||||
va_end( va );
|
va_end( va );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
need_nl = Ontty;
|
need_nl = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ infon( const char *msg, ... )
|
||||||
vprintf( msg, va );
|
vprintf( msg, va );
|
||||||
va_end( va );
|
va_end( va );
|
||||||
fflush( stdout );
|
fflush( stdout );
|
||||||
need_nl = Ontty;
|
need_nl = 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user