Fossil SCM

Remove unused sshin_read() function that was missed.

andybradford 2013-08-23 14:14 ssh-test-http
Commit f64c003d1341f7406c114247d566f611fbc8b0ab
1 file changed -15
--- src/http_transport.c
+++ src/http_transport.c
@@ -74,25 +74,10 @@
7474
transport.nSent = 0;
7575
transport.nRcvd = 0;
7676
}
7777
}
7878
79
-/*
80
-** Read text from sshIn. Zero-terminate and remove trailing
81
-** whitespace.
82
-*/
83
-static void sshin_read(char *zBuf, int szBuf){
84
- int got;
85
- zBuf[0] = 0;
86
- got = read(sshIn, zBuf, szBuf-1);
87
- while( got>=0 ){
88
- zBuf[got] = 0;
89
- if( got==0 || !fossil_isspace(zBuf[got-1]) ) break;
90
- got--;
91
- }
92
-}
93
-
9479
/*
9580
** Default SSH command
9681
*/
9782
#ifdef __MINGW32__
9883
static char zDefaultSshCmd[] = "ssh -T";
9984
--- src/http_transport.c
+++ src/http_transport.c
@@ -74,25 +74,10 @@
74 transport.nSent = 0;
75 transport.nRcvd = 0;
76 }
77 }
78
79 /*
80 ** Read text from sshIn. Zero-terminate and remove trailing
81 ** whitespace.
82 */
83 static void sshin_read(char *zBuf, int szBuf){
84 int got;
85 zBuf[0] = 0;
86 got = read(sshIn, zBuf, szBuf-1);
87 while( got>=0 ){
88 zBuf[got] = 0;
89 if( got==0 || !fossil_isspace(zBuf[got-1]) ) break;
90 got--;
91 }
92 }
93
94 /*
95 ** Default SSH command
96 */
97 #ifdef __MINGW32__
98 static char zDefaultSshCmd[] = "ssh -T";
99
--- src/http_transport.c
+++ src/http_transport.c
@@ -74,25 +74,10 @@
74 transport.nSent = 0;
75 transport.nRcvd = 0;
76 }
77 }
78
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79 /*
80 ** Default SSH command
81 */
82 #ifdef __MINGW32__
83 static char zDefaultSshCmd[] = "ssh -T";
84

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button