diff options
author | Luke Leighton <lkcl@samba.org> | 1999-10-15 18:44:33 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-10-15 18:44:33 +0000 |
commit | 415f84112e3920cd3ede9ebdece632a33c2fe707 (patch) | |
tree | 55891c68840be139a5a8bcb47bc4491c431fea85 /source3/rpcclient | |
parent | 8f7898d54752b697f47718da804fddadaf07d5f8 (diff) | |
download | samba-415f84112e3920cd3ede9ebdece632a33c2fe707.tar.gz samba-415f84112e3920cd3ede9ebdece632a33c2fe707.tar.bz2 samba-415f84112e3920cd3ede9ebdece632a33c2fe707.zip |
removed unused static wait_keyboard()
(This used to be commit 8cb6163b068812340a6360241d0ee9372c3dbec2)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index 2883058812..9648c4d28f 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -237,36 +237,6 @@ static int process_tok(fstring tok) } /**************************************************************************** -wait for keyboard activity, swallowing network packets -****************************************************************************/ -static void wait_keyboard(struct cli_state *cli) -{ - fd_set fds; - struct timeval timeout; - - while (1) - { - FD_ZERO(&fds); - FD_SET(cli->fd,&fds); - FD_SET(fileno(stdin),&fds); - - timeout.tv_sec = 20; - timeout.tv_usec = 0; - sys_select(MAX(cli->fd,fileno(stdin))+1,&fds,&timeout); - - if (FD_ISSET(fileno(stdin),&fds)) - return; - - /* We deliberately use receive_smb instead of - client_receive_smb as we want to receive - session keepalives and then drop them here. - */ - if (FD_ISSET(cli->fd,&fds)) - receive_smb(cli->fd,cli->inbuf,0); - } -} - -/**************************************************************************** process commands from the client ****************************************************************************/ static void do_command(struct client_info *info, char *tok, char *line) |