This commit is contained in:
Manoj Ampalam 2016-03-07 14:27:13 -08:00
parent 2305a16980
commit 04ae5b8469
3 changed files with 6 additions and 6 deletions

4
misc.c
View File

@ -81,7 +81,7 @@ chop(char *s)
int
set_nonblock(int fd)
{
#ifdef WIN32_FIXME
#if(0)//def WIN32_FIXME
int on = 1;
@ -115,7 +115,7 @@ set_nonblock(int fd)
int
unset_nonblock(int fd)
{
#ifdef WIN32_FIXME
#if(0)//def WIN32_FIXME
int on = 0;

View File

@ -1314,7 +1314,7 @@ ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
struct timeval timeout, start, *timeoutp = NULL;
DBG(debug("packet_read()"));
#if(0)//ndef WIN32_FIXME
#if(1)//ndef WIN32_FIXME
int d = howmany(state->connection_in + 1, NFDBITS);
d = sizeof(fd_mask);
setp = calloc(howmany(state->connection_in + 1,
@ -1354,7 +1354,7 @@ ssh_packet_read_seqnr(struct ssh *ssh, u_char *typep, u_int32_t *seqnr_p)
* Otherwise, wait for some data to arrive, add it to the
* buffer, and try again.
*/
#if(0)//ndef WIN32_FIXME
#if(1)//ndef WIN32_FIXME
memset(setp, 0, howmany(state->connection_in + 1,
NFDBITS) * sizeof(fd_mask));
#else

View File

@ -335,7 +335,7 @@ read_passphrase(const char *prompt, int flags)
* Show prompt for user.
*/
write(STDERR_FILENO, prompt, strlen(prompt));
write(STDOUT_FILENO, prompt, strlen(prompt));
len = retr = 0;
int bufsize = sizeof(buf);
@ -368,7 +368,7 @@ read_passphrase(const char *prompt, int flags)
}
buf[len] = '\0' ; // get rid of the cr/lf
write(STDERR_FILENO,"\n", strlen("\n")); // show a newline as we do not echo password or the line
write(STDOUT_FILENO,"\n", strlen("\n")); // show a newline as we do not echo password or the line
ret = xstrdup(buf);