summaryrefslogtreecommitdiff
path: root/clientloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'clientloop.c')
-rw-r--r--clientloop.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/clientloop.c b/clientloop.c
index d57b300de..e892c1abd 100644
--- a/clientloop.c
+++ b/clientloop.c
@@ -59,7 +59,7 @@
59 */ 59 */
60 60
61#include "includes.h" 61#include "includes.h"
62RCSID("$OpenBSD: clientloop.c,v 1.48 2001/02/06 22:43:02 markus Exp $"); 62RCSID("$OpenBSD: clientloop.c,v 1.49 2001/02/08 19:30:51 itojun Exp $");
63 63
64#include "ssh.h" 64#include "ssh.h"
65#include "ssh1.h" 65#include "ssh1.h"
@@ -133,7 +133,7 @@ int session_ident = -1;
133/* Returns the user\'s terminal to normal mode if it had been put in raw mode. */ 133/* Returns the user\'s terminal to normal mode if it had been put in raw mode. */
134 134
135void 135void
136leave_raw_mode() 136leave_raw_mode(void)
137{ 137{
138 if (!in_raw_mode) 138 if (!in_raw_mode)
139 return; 139 return;
@@ -147,7 +147,7 @@ leave_raw_mode()
147/* Puts the user\'s terminal in raw mode. */ 147/* Puts the user\'s terminal in raw mode. */
148 148
149void 149void
150enter_raw_mode() 150enter_raw_mode(void)
151{ 151{
152 struct termios tio; 152 struct termios tio;
153 153
@@ -173,7 +173,7 @@ enter_raw_mode()
173/* Restores stdin to blocking mode. */ 173/* Restores stdin to blocking mode. */
174 174
175void 175void
176leave_non_blocking() 176leave_non_blocking(void)
177{ 177{
178 if (in_non_blocking_mode) { 178 if (in_non_blocking_mode) {
179 (void) fcntl(fileno(stdin), F_SETFL, 0); 179 (void) fcntl(fileno(stdin), F_SETFL, 0);
@@ -185,7 +185,7 @@ leave_non_blocking()
185/* Puts stdin terminal in non-blocking mode. */ 185/* Puts stdin terminal in non-blocking mode. */
186 186
187void 187void
188enter_non_blocking() 188enter_non_blocking(void)
189{ 189{
190 in_non_blocking_mode = 1; 190 in_non_blocking_mode = 1;
191 (void) fcntl(fileno(stdin), F_SETFL, O_NONBLOCK); 191 (void) fcntl(fileno(stdin), F_SETFL, O_NONBLOCK);
@@ -227,7 +227,7 @@ signal_handler(int sig)
227 */ 227 */
228 228
229double 229double
230get_current_time() 230get_current_time(void)
231{ 231{
232 struct timeval tv; 232 struct timeval tv;
233 gettimeofday(&tv, NULL); 233 gettimeofday(&tv, NULL);
@@ -241,7 +241,7 @@ get_current_time()
241 */ 241 */
242 242
243void 243void
244client_check_initial_eof_on_stdin() 244client_check_initial_eof_on_stdin(void)
245{ 245{
246 int len; 246 int len;
247 char buf[1]; 247 char buf[1];
@@ -295,7 +295,7 @@ client_check_initial_eof_on_stdin()
295 */ 295 */
296 296
297void 297void
298client_make_packets_from_stdin_data() 298client_make_packets_from_stdin_data(void)
299{ 299{
300 u_int len; 300 u_int len;
301 301
@@ -326,7 +326,7 @@ client_make_packets_from_stdin_data()
326 */ 326 */
327 327
328void 328void
329client_check_window_change() 329client_check_window_change(void)
330{ 330{
331 struct winsize ws; 331 struct winsize ws;
332 332
@@ -760,7 +760,7 @@ client_process_output(fd_set * writeset)
760 */ 760 */
761 761
762void 762void
763client_process_buffered_input_packets() 763client_process_buffered_input_packets(void)
764{ 764{
765 dispatch_run(DISPATCH_NONBLOCK, &quit_pending, NULL); 765 dispatch_run(DISPATCH_NONBLOCK, &quit_pending, NULL);
766} 766}
@@ -1195,7 +1195,7 @@ client_input_channel_req(int type, int plen, void *ctxt)
1195} 1195}
1196 1196
1197void 1197void
1198client_init_dispatch_20() 1198client_init_dispatch_20(void)
1199{ 1199{
1200 dispatch_init(&dispatch_protocol_error); 1200 dispatch_init(&dispatch_protocol_error);
1201 dispatch_set(SSH2_MSG_CHANNEL_CLOSE, &channel_input_oclose); 1201 dispatch_set(SSH2_MSG_CHANNEL_CLOSE, &channel_input_oclose);
@@ -1209,7 +1209,7 @@ client_init_dispatch_20()
1209 dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust); 1209 dispatch_set(SSH2_MSG_CHANNEL_WINDOW_ADJUST, &channel_input_window_adjust);
1210} 1210}
1211void 1211void
1212client_init_dispatch_13() 1212client_init_dispatch_13(void)
1213{ 1213{
1214 dispatch_init(NULL); 1214 dispatch_init(NULL);
1215 dispatch_set(SSH_MSG_CHANNEL_CLOSE, &channel_input_close); 1215 dispatch_set(SSH_MSG_CHANNEL_CLOSE, &channel_input_close);
@@ -1228,14 +1228,14 @@ client_init_dispatch_13()
1228 &x11_input_open : &deny_input_open); 1228 &x11_input_open : &deny_input_open);
1229} 1229}
1230void 1230void
1231client_init_dispatch_15() 1231client_init_dispatch_15(void)
1232{ 1232{
1233 client_init_dispatch_13(); 1233 client_init_dispatch_13();
1234 dispatch_set(SSH_MSG_CHANNEL_CLOSE, &channel_input_ieof); 1234 dispatch_set(SSH_MSG_CHANNEL_CLOSE, &channel_input_ieof);
1235 dispatch_set(SSH_MSG_CHANNEL_CLOSE_CONFIRMATION, & channel_input_oclose); 1235 dispatch_set(SSH_MSG_CHANNEL_CLOSE_CONFIRMATION, & channel_input_oclose);
1236} 1236}
1237void 1237void
1238client_init_dispatch() 1238client_init_dispatch(void)
1239{ 1239{
1240 if (compat20) 1240 if (compat20)
1241 client_init_dispatch_20(); 1241 client_init_dispatch_20();