diff options
author | Michael Bestas <mikeioannina@gmail.com> | 2015-08-19 00:33:07 +0300 |
---|---|---|
committer | Michael Bestas <mikeioannina@gmail.com> | 2015-09-25 23:20:25 +0300 |
commit | a36d905455cc35d7092e8429f468df1f8d922b4e (patch) | |
tree | e45555cd7be78b07c7e2790777a97c0f39ee598e /authenticate.c | |
parent | 58be9a73db704a8ce2b6e7e09532416c2309b8ef (diff) | |
download | android_external_rsync-replicant-6.0-0004-rc6.tar.gz android_external_rsync-replicant-6.0-0004-rc6.tar.bz2 android_external_rsync-replicant-6.0-0004-rc6.zip |
Fix android compilation for 3.1.1HEADreplicant-6.0-0004-transitionreplicant-6.0-0004-rc6replicant-6.0-0004-rc5-transitionreplicant-6.0-0004-rc5replicant-6.0-0004-rc4replicant-6.0-0004-rc3replicant-6.0-0004-rc2replicant-6.0-0004-rc1replicant-6.0-0004replicant-6.0-0003replicant-6.0-0002replicant-6.0-0001stable/cm-13.0-ZNH5Ystable/cm-13.0-ZNH2KBstable/cm-13.0-ZNH2Kstable/cm-13.0-ZNH0Ecm-14.1cm-14.0cm-13.0
Change-Id: Ic8c134020beb98e1e52c4d527cbdbfe591d67262
Diffstat (limited to 'authenticate.c')
-rw-r--r-- | authenticate.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/authenticate.c b/authenticate.c index f363e72e..c92746c6 100644 --- a/authenticate.c +++ b/authenticate.c @@ -343,36 +343,6 @@ char *auth_server(int f_in, int f_out, int module, const char *host, return strdup(line); } -#ifdef __BIONIC__ -#include <termios.h> -static const char *getpass(char *prompt) -{ - struct termios old, new; - static char res[256]; - char *p; - - /* Turn echoing off and fail if we can't. */ - if (tcgetattr (0, &old) != 0) - return NULL; - new = old; - new.c_lflag &= ~ECHO; - if (tcsetattr (0, TCSAFLUSH, &new) != 0) - return NULL; - - fprintf(stderr, "%s", prompt); - fflush(stderr); - fgets(res, 256, stdin); - if ((p = strchr(res, '\n'))) - *p = 0; - - /* Restore terminal. */ - tcsetattr (0, TCSAFLUSH, &old); - - return res; -} - -#endif - void auth_client(int fd, const char *user, const char *challenge) { const char *pass; |