diff options
author | Luke Leighton <lkcl@samba.org> | 1999-10-27 16:58:35 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-10-27 16:58:35 +0000 |
commit | 9a5b9753dd46d0a116026e8a18d57f9f8263834f (patch) | |
tree | d0ae59475cd4ae91f4f1bb8611a752f9d6b732ff /source3/rpcclient | |
parent | 1298a3d1e0f7fc40b2bcb22f2e9674d01d00ae60 (diff) | |
download | samba-9a5b9753dd46d0a116026e8a18d57f9f8263834f.tar.gz samba-9a5b9753dd46d0a116026e8a18d57f9f8263834f.tar.bz2 samba-9a5b9753dd46d0a116026e8a18d57f9f8263834f.zip |
no CLIX, no !HAVE_READLINE blah blah. argh.
(This used to be commit de69f3ef77f55f13e41b8f1e10d22b2746c4b105)
Diffstat (limited to 'source3/rpcclient')
-rw-r--r-- | source3/rpcclient/rpcclient.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/rpcclient/rpcclient.c b/source3/rpcclient/rpcclient.c index ec9fe33b58..1decab2018 100644 --- a/source3/rpcclient/rpcclient.c +++ b/source3/rpcclient/rpcclient.c @@ -261,19 +261,19 @@ static void do_command(struct client_info *info, char *tok, char *line) /**************************************************************************** wait for keyboard activity, swallowing network packets ****************************************************************************/ -static void wait_keyboard(void) +static void wait_keyboard(struct cli_state *cli) { fd_set fds; struct timeval timeout; while (1) { FD_ZERO(&fds); - FD_SET(smb_cli->fd,&fds); + FD_SET(cli->fd,&fds); FD_SET(fileno(stdin),&fds); timeout.tv_sec = 20; timeout.tv_usec = 0; - sys_select(MAX(smb_cli->fd,fileno(stdin))+1,&fds,&timeout); + sys_select(MAX(cli->fd,fileno(stdin))+1,&fds,&timeout); if (FD_ISSET(fileno(stdin),&fds)) return; @@ -282,8 +282,8 @@ static void wait_keyboard(void) client_receive_smb as we want to receive session keepalives and then drop them here. */ - if (FD_ISSET(smb_cli->fd,&fds)) - receive_smb(smb_cli->fd,smb_cli->inbuf,0); + if (FD_ISSET(cli->fd,&fds)) + receive_smb(cli->fd,cli->inbuf,0); } } #endif |