commit 5d322414420bf4bb7138145ad42c9d942dad11be
Author: Oswald Buddenhagen <[email protected]>
Date:   Thu Jun 2 10:14:54 2011 +0200

    remove Ontty flag
    
    i can't figure out why i added it in the first place. it doesn't seem to
    make any sense ...

 src/isync.h |    2 +-
 src/main.c  |    1 -
 src/util.c  |    6 +++---
 3 files changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/isync.h b/src/isync.h
index 88ee199..1886a11 100644
--- a/src/isync.h
+++ b/src/isync.h
@@ -391,7 +391,7 @@ void cram( const char *challenge, const char *user, const 
char *pass,
 #define VERYQUIET    16
 #define KEEPJOURNAL  32
 
-extern int DFlags, Ontty;
+extern int DFlags;
 
 void debug( const char *, ... );
 void debugn( const char *, ... );
diff --git a/src/main.c b/src/main.c
index b5ad702..85e3699 100644
--- a/src/main.c
+++ b/src/main.c
@@ -228,7 +228,6 @@ main( int argc, char **argv )
                fputs( "Fatal: $HOME not set\n", stderr );
                return 1;
        }
-       Ontty = isatty( 1 ) && isatty( 2 );
        arc4_init();
 
        memset( mvars, 0, sizeof(*mvars) );
diff --git a/src/util.c b/src/util.c
index 39df03d..83b7a76 100644
--- a/src/util.c
+++ b/src/util.c
@@ -31,7 +31,7 @@
 #include <pwd.h>
 #include <ctype.h>
 
-int DFlags, Ontty;
+int DFlags;
 static int need_nl;
 
 void
@@ -67,7 +67,7 @@ debugn( const char *msg, ... )
                vprintf( msg, va );
                va_end( va );
                fflush( stdout );
-               need_nl = Ontty;
+               need_nl = 1;
        }
 }
 
@@ -95,7 +95,7 @@ infon( const char *msg, ... )
                vprintf( msg, va );
                va_end( va );
                fflush( stdout );
-               need_nl = Ontty;
+               need_nl = 1;
        }
 }
 

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
isync-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/isync-devel

Reply via email to