Fossil

Check-in [f64c003d]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Remove unused sshin_read() function that was missed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | ssh-test-http
Files: files | file ages | folders
SHA1:f64c003d1341f7406c114247d566f611fbc8b0ab
User & Date: andybradford 2013-08-23 14:14:04
Context
2013-08-24
19:02
Make a best effort to record the IP of the remote host in rcvfrom. check-in: 5627d795 user: andybradford tags: ssh-test-http
2013-08-23
14:14
Remove unused sshin_read() function that was missed. check-in: f64c003d user: andybradford tags: ssh-test-http
2013-08-19
14:48
We can detect when to enable compatibility mode, so do this instead of requiring an explicit argument. check-in: 90c48593 user: andybradford tags: ssh-test-http
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_transport.c.

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
  if( pnRcvd ) *pnRcvd = transport.nRcvd;
  if( resetFlag ){
    transport.nSent = 0;
    transport.nRcvd = 0;
  }
}

/*
** Read text from sshIn.  Zero-terminate and remove trailing
** whitespace.
*/
static void sshin_read(char *zBuf, int szBuf){
  int got;
  zBuf[0] = 0;
  got = read(sshIn, zBuf, szBuf-1);
  while( got>=0 ){
    zBuf[got] = 0;
    if( got==0 || !fossil_isspace(zBuf[got-1]) ) break;
    got--;
  }
}

/*
** Default SSH command
*/
#ifdef __MINGW32__
static char zDefaultSshCmd[] = "ssh -T";
#else
static char zDefaultSshCmd[] = "ssh -e none -T";







<
<
<
<
<
<
<
<
<
<
<
<
<
<
<







72
73
74
75
76
77
78















79
80
81
82
83
84
85
  if( pnRcvd ) *pnRcvd = transport.nRcvd;
  if( resetFlag ){
    transport.nSent = 0;
    transport.nRcvd = 0;
  }
}
















/*
** Default SSH command
*/
#ifdef __MINGW32__
static char zDefaultSshCmd[] = "ssh -T";
#else
static char zDefaultSshCmd[] = "ssh -e none -T";