Fossil SCM
Remove unused sshin_read() function that was missed.
Commit
f64c003d1341f7406c114247d566f611fbc8b0ab
Parent
90c4859315b6303…
1 file changed
-15
-15
| --- src/http_transport.c | ||
| +++ src/http_transport.c | ||
| @@ -74,25 +74,10 @@ | ||
| 74 | 74 | transport.nSent = 0; |
| 75 | 75 | transport.nRcvd = 0; |
| 76 | 76 | } |
| 77 | 77 | } |
| 78 | 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 | 79 | /* |
| 95 | 80 | ** Default SSH command |
| 96 | 81 | */ |
| 97 | 82 | #ifdef __MINGW32__ |
| 98 | 83 | static char zDefaultSshCmd[] = "ssh -T"; |
| 99 | 84 |
| --- 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 |